
The Unhandled Exception Podcast Event Sourcing and Event Driven Architecture - with Callum Linington
35 snips
Oct 15, 2021 AI Snips
Chapters
Transcript
Episode notes
Event Sourcing Is An Append Only Time Series
- Event sourcing stores state as a time-ordered append-only log of events instead of overwriting current entity state.
- Events are grouped into streams and an event store holds streams; replaying a stream reconstructs an entity at any point in time.
Replaying Events Replaces Direct State Updates
- Reconstructing current state requires replaying events, which is a paradigm shift from CRUD where the database stores only latest entity state.
- You can snapshot rolled-up state periodically to avoid replaying every event from time zero.
Slider Timeline Prototype Sparked Interest In Event Sourcing
- Callum built a timeline UI backed by flattened events using Object.assign to merge event payloads progressively.
- That UI experiment led his manager to ask if he'd heard of event sourcing, sparking his deeper exploration.
