Event sourcing
Event sourcing is an approach that tackles reproducibility as a shortcoming of CRUD-based systems.
Event sourced systems calculate the current state of the systems from atomic events that happened in the past. The events represent the individual business use case invocations, including the information provided in the invocations.
The current state is not permanently persisted, but emerges by applying all events one after another. The events themselves happened in the past and are immutable.
To give an example, a user with its characteristics is calculated from all events related to it. Applying UserCreated, UserApproved, and UserNameChanged one after another creates the current representation of the user up to its recent event: ...
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