Event sourcing
Storing every action taken on the data, in order, instead of only the current state. The state is computed by replaying the events.
Example
An account stores «deposit $100» and «withdrawal $30»; the $70 balance is computed from those 2 events.
Test yourself: Event sourcing
Event sourcing
What does a system with event sourcing store?
It stores «deposit $100» and «withdrawal $30»; the $70 balance is computed from those 2 events.
Event sourcing
You store each movement of an account and the balance comes from adding them. What are you using?
The events are the data: the $120 balance comes from replaying 3 movements.
0/2
â–¶ Play