- eBook:Practical Microservices: Build Event-Driven Architectures with Event Sourcing and CQRS
- Author:Ethan Garofolo
- Edition:1 edition
- Data:April 28, 2020
- Pages:292 pages
- Format:PDF, ePUB
Much ink has been spilled on the topic of microservices, but all of this writing fails to accurately identity what makes a system a monolith, define what microservices are, or give complete, practical examples, so you're probably left thinking they have nothing to offer you. You don't have to be at Google or Facebook scale to benefit from a microservice-based architecture. Microservices will keep even small and medium teams productive by keeping the pieces of your system focused and decoupled.
Discover the basics of message-based architectures, render the same state in different shapes to fit the task at hand, and learn what it is that makes something a monolith (it has nothing to do with how many machines you deploy to). Conserve resources by performing background jobs with microservices. Deploy specialized microservices for registration, authentication, payment processing, e-mail, and more. Tune your services by defining appropriate service boundaries. Deploy your services effectively for continuous integration. Master debugging techniques that work across different services. You'll finish with a deployable system and skills you can apply to your current project.
Add the responsiveness and flexibility of microservices to your project, no matter what the size or complexity.
What You Need:
While the principles of this book transcend programming language, the code examples are in Node.js because jаvascript, for better or worse, is widely read. You'll use PostgreSQL for data storage, so familiarity with it is a plus. The books does provide Docker images to make working with PostgreSQL a bit easier, but extensive Docker knowledge is not required.
1. You Have a New Project
2. Writing Messages
3. Putting Data in a Message Store
4. Projecting Data into Useful Shapes
5. Subscribing to the Message Store
Part II — Fleshing Out the System
6. Registering Users
7. Implementing Your First Component
8. Authenticating Users
9. Adding an Email Component
10. Performing Background Jobs with Microservices
11. Building Async-Aware User Interfaces
Part III — Tools of the Trade
12. Deploying Components
13. Debugging Components
14. Testing in a Microservices Architecture
15. Continuing the Journey