Message- and Event-Driven Systems with CQRS and Event Sourcing: Web and Cloud Architecture
by Alex Lawrence
Chapter 6. Event Sourcing
Events are a ubiquitous concept to represent facts in software. As part of a message-driven system, they are used to inform about relevant changes. Within a domain model, events describe significant occurrences and allow the integration and synchronization of different transactional boundaries. Combined with a message journal, they can evolve into persistent records of domain knowledge that would be unavailable otherwise. When applying CQRS, events are the key to a loosely coupled and reactive synchronization of a query model. Even for the user interface, they are often chosen as the medium to inform about past actions. In the described scenarios, events are mostly an additional aspect on top of mutable data. But what ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access