GOTO Chicago presentation: Not Just Events - Developing Asynchronous Microservices
Earlier this year, I gave a talk at GOTO Chicago on how to solve distributed data management problems in a microservice architecture using asynchronous messaging. I described how to implement transactions using the Saga pattern and implement queries using the CQRS pattern. Both patterns rely on asynchronous messaging between services.
Abstract
The microservice architecture functionally decomposes an application into a set of services. Each service has its own private database that’s only accessible indirectly through the services API. Consequently, implementing queries and transactions that span multiple services is challenging.
In this presentation, you will learn how to solve these distributed data management challenges using asynchronous messaging. Chris will share with you how to implement transactions using sagas, which are sequences of local transactions. You will learn how to coordinate sagas using either events or command messages. Chris will also explore how to implement queries using Command Query Responsibility Segregation (CQRS), which uses events to maintain easily queried replicas.
Slides
Video
To learn more
- Read these blog posts on the Saga pattern
- Look at the examples
- Read my Microservices patterns book, which has a comprehensive discussion of asynchronous microservices, sagas and CQRS.
- Read or watch MicroCPH talk on Managing data consistency in a microservice architecture using Sagas (slides, video)
- Talk to me about my microservices consulting and training services.
- Learn more about microservices at adopt.www.prc.education