Event Sourcing in Action
summary
Hands-on account of building event-sourced systems at Equinor using Cosmos DB on Azure, with concrete patterns: assemble reactors + commands + read models, handle at-least-once delivery by detecting duplicates in aggregates, and use BDD scenarios as executable shaping tests. Describes dealing with the dual-write problem by ordering save vs external API calls, adopting self-healing checks, running occasional full event-store migrations to change domain event shapes, and using in-memory read models (later persisted) for fast UX and Cosmos DB change-feed scaling.
AI-written summary · about
chapters (21)
- 0:00Introduction to event sourcing
- 1:07Real-life event sourcing experience
- 2:51Event sourcing building blocks
- 4:14Domain-driven design in event sourcing
- 5:59Business rules and reactors
- 7:45Domain events and future questions
- 9:12Domain modeling and naming challenges
- 11:15Behavior-driven development with event sourcing
- 14:29Testing reactors and aggregates
- 17:20Reactor challenges and error handling
- 23:41Dual write problem in reactors
- 27:55Self-healing in distributed systems
- 29:00Anti-patterns in event sourcing
- 30:27Reactor flexibility and scaling
- 32:34Read models and in-memory projections
- 36:05Eventual consistency and user experience
- 38:13Correcting data issues in event sourcing
- 41:48Migrating domain events
- 44:41Extending solutions with event sourcing
- 47:09Simple parts in complex arrangements
- 48:35Event sourcing and digitalization
