~/talk

CQRS pitfalls and patterns

Talkat NDC Oslo 2023 · 2023-05-22..05-26· [microservices]
name:Udi Dahan
links:none on file
slides:none on file

Claim: applying CQRS blindly often increases complexity and creates user-visible bugs rather than improving performance. The talk contrasts standard single-database CQRS with eventually consistent CQRS (commands write to one DB, events update a separate query DB), shows how an async query updater and optimistic concurrency produce stale or duplicated records under load (200 concurrent buys against 1,000 inventory became 999), and recommends alternatives: DB replication/sharding, explicit private vs public data flows, pre-charge or negative-inventory business models, and vertical-slice composition.

AI-written summary · about

  1. 0:00Introduction
  2. 1:00CQRS Pitfalls
  3. 4:41Best Practices
  4. 7:10Command Query Separation
  5. 10:23Domain Models
  6. 13:21Architecture
  7. 16:37Standard CQRS
  8. 20:39Simple CQRS
  9. 25:18Private vs Public Data
  10. 31:22Problems with CQRS
  11. 34:14Vertical Slice Architecture
  12. 37:49Race Conditions
  13. 43:17Optimistic concurrency
  14. 45:46Connection pool
  15. 52:42Nonblocking
  16. 55:38Advanced composition
~/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.