Pattern 05 / DATA
Event Sourcing
Use this when needing a perfect audit trail and the ability to reconstruct old states.
- Pressure
- Needing a perfect audit trail and the ability to reconstruct old states
- Mechanism
- Store facts as immutable events and derive current state by replaying or snapshotting those events
- Toll
- Schema evolution, replay cost, and unbounded event growth require discipline
