Event sourcing is a data persistence technique where each change in an entity's state is stored as a separate event. This approach contrasts with traditional state-oriented persistence that only records the current state. By using domain events, each state mutation is explicitly captured, enabling more transparent and thorough tracking of changes. Applying this method involves altering existing application code to produce and handle these events effectively, offering benefits like better historical tracking and clearer depiction of domain activities.
Table of contents
State-oriented persistenceHistorical recordEntities as event streamsCommand handling flowEvent-based entityUsing events for persistenceWhy Event Sourcing?Sort: