Pragmatic Event Sourcing
summary
Argues Event Sourcing is a pattern not a silver bullet, reports running it in production on four+ projects and seeing a single stream with 4,127 events that made naive replays unbearably slow. Recommends snapshots and read views to cut replay cost, contrasts storage choices (Kafka/distributed log, Event Store, generic DB — preferred), compares thick events vs thin events, warns about repeatability breaks from external lookups, and covers sequencing (DB sequence vs vector clocks) and upcasting/migrations.
AI-written summary · about
chapters (16)
- 0:00Introduction
- 1:21What is Event Sourcing
- 4:07Why Event Sourcing is needed
- 7:15How Event Sourcing works
- 11:25Performance challenges
- 14:56Filtering and mass operations
- 17:45Repeatability issues
- 25:28Thick vs thin events
- 25:48Linearizability problems
- 28:54Versioning and compatibility
- 32:25Event Sourcing pros and cons
- 36:58Storage options
- 43:39Event Sourcing and CQRS
- 46:30Common misconceptions
- 49:42Further resources
- 50:03Q&A session
