Compiled Conversations

Event Sourcing with Shawn McCool

16 snips
Jan 16, 2026
In this session, Shawn McCool, an experienced software engineer and domain modeling advocate, dives into the transformative world of event sourcing. He shares his journey from discovering domain events while working on Laravel.io to creating the Event Sourcery course. Shawn explains the key differences between event sourcing and CRUD, while discussing the nuances of CQRS and eventual consistency. He emphasizes the importance of modeling intent and context with events and advocates for short-lived aggregates to simplify versioning and retention challenges.
Ask episode
AI Snips
Chapters
Books
Transcript
Episode notes
ADVICE

Design For Eventual Consistency

  • Expect eventual consistency when projections are updated asynchronously and design UIs and SLAs around that delay.
  • Use patterns to reduce delay or provide immediate feedback where UX requires it.
INSIGHT

Avoid Locking Everything In One Transaction

  • Many systems overuse synchronous transactions for convenience, creating coupling and operational fragility.
  • Decoupling via events improves reliability by isolating failures to subsystems instead of the core flow.
ADVICE

Test By Given-When-Then With Events

  • Test event-sourced behavior with given-when-then using events as inputs and expected events as outputs.
  • Treat events as plain data structures and assert on emitted events rather than internals.
Get the Snipd Podcast app to discover more snips from this episode
Get the app