Event Sourcing
DataStore state as a sequence of events
Principles
Events are immutableState is reconstructed from eventsEvent store as source of truthComplete auditability
When to use
Critical auditability, financial systems, important temporal debugging
When not to use
Simple CRUD, when history doesn't matter
Pros and Cons
Ventajas
- + Complete history of changes
- + Temporal debugging
- + Built-in audit trail
- + Reconstruction to any point in time
Desventajas
- - High complexity
- - Complex schema evolution
- - Storage can grow significantly
- - Complex queries on current state