Event sourcing.
also: event-sourced · event storeStoring every change as an immutable event and deriving current state by replaying them, instead of storing only the latest state.
the two-minute refresher
- A state table keeps only 'balance = 1000' and loses how it got there.
- An event log keeps Deposited 500, Withdrew 200…; state = replay of all events.
- You get full history, auditing and the ability to rebuild new views.
- Costs: replay time (use snapshots) and evolving event schemas.