The Unhandled Exception Podcast

Event Sourcing and Event Driven Architecture - with Callum Linington

35 snips
Oct 15, 2021
Ask episode
AI Snips
Chapters
Transcript
Episode notes
INSIGHT

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.
INSIGHT

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.
ANECDOTE

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.
Get the Snipd Podcast app to discover more snips from this episode
Get the app