CQRS: Processing the events to query-databases
summary
Proof-of-concept implements a resumable, clustered query-side pipeline that reads events by tag from Akka Persistence (demo with LevelDB, production on the Cassandra plugin), stores offsets, and writes optimized read views. At ~5,000 daily advisors scale the design parallelizes processing by assigning events to tags via hash-modulo sharding so all events for one entity stay ordered while multiple processors run; occasional out-of-order gaps from Cassandra’s materialized views are handled with a short wait (example 100 ms) and retry. Evolving schemas use upcasting so projections only need the latest event shape.
AI-written summary · about
chapters (15)
- 0:00Introduction and speaker intro
- 0:44Why this talk about CQRS
- 4:14Event sourcing fundamentals
- 8:18CQRS architecture explained
- 12:20Choosing frameworks and tools
- 14:51Right side with Akka Persistence
- 19:34Query side processing API
- 26:31Resume ability and event order
- 27:58Eventual consistency challenges
- 31:58Latency and scalability
- 35:41Handling changing requirements
- 37:05Event upgrade techniques
- 41:58Impact on query side processing
- 43:53Push vs pull for events
- 46:02Conclusion and summary
