You should DIY your event store & event sourcing framework
summary
Argues that start by building a minimal event store yourself rather than adopting heavyweight products, and demonstrates a working implementation: a single-table event table with stream ID + sequence, JSON payloads, optimistic concurrency via sequence checks, and replay via a reducer. Covers three snapshot patterns including a rolling tip and recommends snapshot every ~100 events for large streams, discusses transactional (inline) vs eventually consistent projections, checkpointed readers, upcasters for versioning, and projector rebuild strategies.
AI-written summary · about
chapters (23)
- 0:00Introduction and setup
- 1:52What this talk covers
- 3:55Why build your own event store
- 5:20Basic event store structure
- 8:05Writing to the event store
- 9:47Reading state from events
- 11:54Managing large event streams
- 13:17Snapshots and tips
- 16:04Querying the event store
- 17:30Projections and read models
- 19:15Transactional read models
- 20:41Eventual consistency projections
- 22:05Delivery guarantees for projections
- 24:09Event sourcing and messaging
- 25:53Building projections efficiently
- 26:34Event versioning challenges
- 29:02Solving read after write issues
- 30:28Tools and debugging tips
- 31:10Event design best practices
- 31:52Event modeling approach
- 32:55Modeling reality with events
- 34:00Why current state is unnatural
- 35:22Resources and closing
