ConTejas Code

Event Sourced Architecture: A Deep Dive

29 snips
Apr 7, 2025
Dive into the fascinating world of Event Sourcing, where every change to an application is captured in an event store. Discover how this architectural pattern intersects with Domain Driven Design and grapples with data consistency through tools like Apache Kafka. Learn about the practical challenges, such as storage costs and snapshotting strategies, while exploring real-world applications. The discussion also highlights alternatives like Postgres' Write-Ahead Logging, providing a comprehensive look at optimizing data flow and event management.
Ask episode
AI Snips
Chapters
Transcript
Episode notes
ANECDOTE

G2i's Event-Sourced System

  • Tejas Kumar built an event-sourced system at G2i for their developer application process.
  • This system tracked applicant state changes like 'application received' to 'code reviewed'.
INSIGHT

Event Sourcing Definition

  • Event sourcing derives application state from a sequence of events, not static storage.
  • It focuses on how the state got there, rather than just what the current state is.
INSIGHT

Event Characteristics

  • Events are domain-specific triggers, named in past tense (e.g., 'ordered', 'added to cart').
  • They should be self-contained, ideally avoiding dependencies on other data.
Get the Snipd Podcast app to discover more snips from this episode
Get the app