Event sourcing stores immutable facts in order rather than overwriting only the latest state. Replaying events, often from a snapshot, reconstructs the current value.
The demo replays deposits and withdrawals to rebuild a balance. Long-term event schema compatibility and deletion requirements need planning.
When to use
Use it when the change history matters and past state must be reconstructable.