Practical Microservices: Build Event-Driven Architectures with Event Sourcing and CQRS 1st Edition
Use the Amazon App to scan ISBNs and compare prices.
Enter your mobile number or email address below and we'll send you a link to download the free Kindle App. Then you can start reading Kindle books on your smartphone, tablet, or computer - no Kindle device required.
To get the free app, enter your mobile phone number.
Frequently bought together
From the Publisher
About This Book
Separating Principles from Implementations
This is the book that I wish had been written years ago when I first started learning service-based architecture. Finding information on high-level principles is pretty easy, but there weren’t any hands-on tutorials. But by getting so low-level in this book, my biggest fear is that you interpret this particular implementation as microservices gospel. The details here serve only to show what the principles might look like in practice.
Using This Book
The chapters in the book build on top of one another. In Chapter 1, you start writing a project that we add to as we go throughout the book. I can’t imagine a reading order other than “each chapter in order” that makes sense. Maybe I’m lacking in imagination, but that’s my recommendation to you.
As you’re reading through the code, I can’t stress highly enough the value of creating your own project folder, creating each file, and typing its contents yourself. Is that tedious? Possibly. But it’s tedium with a purpose. Reading code is nice, but I want to get the concepts in this book into your brain, and typing code will do so much more of that transfer than merely reading.
In addition, you should also be sure to complete the exercises in the chapters.
What This Book Is
This is a hands-on tutorial. In this book, you’re going to build a system according to a different set of principles—ones that will allow you to build systems where your productivity will not come to an encumbered halt. You’re going to build microservices, focused units of autonomous functionality.
Chapter 1, You Have a New Project introduces the project you’re going to build, and we’ll take a crack at it using the traditional CRUD-based approach, seeing how it paints us into a corner. Following that, in Chapter 2, Writing Messages we’ll unmask the monolith, and you’ll see why most writing on microservices misses the point. We’ll conclude this part of the book by writing code to interact with a piece of technology called a message store—a database optimized for storing asynchronous messages. These messages will form the basis of your architecture.
With the fundamentals in place, you’ll leverage this message store to add features to your system by building microservices and other autonomous components. You’ll send emails (Chapter 9, Adding an Email Component) and even transcode videos (Chapter 10, Performing Background Jobs with Microservices). Along the way, the architecture you implement will allow you to slice and dice the same data in varied and interesting ways.
Once the bulk of the system is in place, in Chapter 12, Deploying Components, you’ll deploy your microservices-based system into the wild. In Chapter 13, Debugging Components you’ll learn how this message-based architecture helps you keep a health system running. You’ll even get exposure to how this architecture alters how you test your system in Chapter 14, Testing in a Microservices Architecture
What This Book Isn’t
This is a hands-on tutorial, not a reference book or The Definitive Guide to microservices. There are topics we won’t cover in detail. In Chapter 15, Continuing the Journey, the final chapter, we call out some of these topics, and you’ll have pointers on how to continue your learning.
This isn’t a book about flashy technology. You’re going to use PostgreSQL, a world-class relational database, and that’s about as exciting as the tools get. The excitement, instead, is in the principles.
About the Author
Ethan's love of computer programming began at age 4 when his dad taught him to make the family TI-99/4A beep. For the past 12 years Ethan has worked professionally up and down the abstraction hierarchy, from junior developer up to platform architect, finally settling into microservice-based architectures for the past 3 years.
- Publisher : Pragmatic Bookshelf; 1st edition (April 28, 2020)
- Language : English
- Paperback : 292 pages
- ISBN-10 : 1680506455
- ISBN-13 : 978-1680506457
- Item Weight : 1.23 pounds
- Dimensions : 7.5 x 0.61 x 9.25 inches
- Best Sellers Rank: #590,276 in Books (See Top 100 in Books)
- Customer Reviews:
Top reviews from the United States
There was a problem filtering reviews right now. Please try again later.
I understand the author's choice to use Postgres as the message store but I would have loved to see it working with EventStore.
The author tries to make the topic fun and keeps the book upbeat. Code examples are in JS and are thoroughly explained. Should be easy to pick up for any working software engineer.
Overall a very nice intro to microservices with CQRS and ES.
I would have liked to see more coverage of mitigating concurrency issues. It should have gotten a whole chapter instead of a couple pages.
Top reviews from other countries
Reviewed in the United Kingdom on February 19, 2021