~/talk

How to model event-sourced systems efficiently

Talkat DDD Europe 2022 · 2022-06-20..06-24· [distributed-systems]
slides:none on file

Event sourcing works but long per-entity streams cause IO, versioning and cognitive costs; teams slice by business life cycles (example: turn an account into account-month streams) rather than rely on snapshots that double writes and can break atomicity when stored in another stream. Practical tactics: truncate and archive closed cycles to blob storage or a secondary event-store, index archives in Elasticsearch for analytics, run scavenging in EventStoreDB. Example numbers: a personal estimate of 20,805 transactions versus observed longest stream of 160 million events.

AI-written summary · about

  1. 0:00Introduction to event sourcing
  2. 2:16Basics of event sourcing with bank accounts
  3. 8:36Challenges with long event streams
  4. 11:29Problems with snapshots in event sourcing
  5. 19:58Modeling business life cycles in event streams
  6. 25:44Closing the books in event-sourced systems
  7. 34:31Archiving vs deleting event data
  8. 41:40Why snapshots are risky in production
  9. 45:11Practical advice for efficient event sourcing
  10. 49:12Key takeaways and conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.