Chapter 6. Developing business logic with event sourcing

This chapter covers

  • Using the Event sourcing pattern to develop business logic
  • Implementing an event store
  • Integrating sagas and event sourcing-based business logic
  • Implementing saga orchestrators using event sourcing

Mary liked the idea, described in chapter 5, of structuring business logic as a collection of DDD aggregates that publish domain events. She could imagine the use of those events being extremely useful in a microservice architecture. Mary planned to use events to implement choreography-based sagas, which maintain data consistency across services and are described in chapter 4. She also expected to use CQRS views, replicas that support efficient querying that are described ...

Get Microservices Patterns now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.