Practical Microservices: Build Event-Driven Architectures with Event Sourcing and CQRS

December 2, 2020
Practical Microservices: Build Event-Driven Architectures with Event Sourcing and CQRS

MVC and CRUD make software easier to write, but harder tochange. Microservice-based architectures can help even the smallestof projects remain agile in the long term, but most tutorialsmeander in theory or completely miss the point of what it means tobe microservice-based. Roll up your sleeves with real projects andlearn the most important concepts of evented architectures. You'llhave your own deployable, testable project and a direction forwhere to go next.Much ink has been spilled on the topic of microservices, but allof this writing fails to accurately identity what makes a system amonolith, define what microservices are, or give complete,practical examples, so you're probably left thinking they havenothing to offer you. You don't have to be at Google or Facebookscale to benefit from a microservice-based architecture.Microservices will keep even small and medium teams productive bykeeping the pieces of your system focused and decoupled.Discover the basics of message-based architectures, render thesame state in different shapes to fit the task at hand, and learnwhat it is that makes something a monolith (it has nothing to dowith how many machines you deploy to). Conserve resources byperforming background jobs with microservices. Deploy specializedmicroservices for registration, authentication, payment processing,e-mail, and more. Tune your services by defining appropriateservice boundaries. Deploy your services effectively for continuousintegration. Master debugging techniques that work across differentservices. You'll finish with a deployable system and skills you canapply to your current project.Add the responsiveness and flexibility of microservices to yourproject, no matter what the size or complexity.What You Need:While the principles of this book transcend programminglanguage, the code examples are in Node.js because JavaScript, forbetter or worse, is widely read. You'll use PostgreSQL for datastorage, so familiarity with it is a plus. The books does provideDocker images to make working with PostgreSQL a bit easier, butextensive Docker knowledge is not required.