Data in Motion: Streaming Static Data Efficiently in Akka Persistence
summary
Explains concrete work on the Akka Persistence Query implementation for akka-persistence-cassandra, showing how queries for events by persistence ID use cheap partitioned range reads, why events by tag requires materialized views, and how the initial replay wrapped blocking Cassandra calls while the new approach reuses the stream for non-blocking replay with configurable consistency. Highlights a pragmatic tradeoff — tag queries delay reads (default 10 seconds), dual‑write hazards with materialized views, and an alternative pipeline that merges per‑node write‑ahead logs to preserve causal ordering and enable efficient, correct stream materialization.
AI-written summary · about
chapters (31)
- 0:00Intro
- 0:29Databases
- 0:44Batch processing
- 1:02Data at scale
- 2:11Streaming static data
- 2:31Pulling data from source
- 2:53Inserts
- 3:27Updates
- 3:56Pushing data from source
- 4:17Infinite streams of finite data source
- 4:30Log data structure
- 5:32Pulling data from a log
- 8:07Akka Persistence Query Cassandra
- 9:49Actor publisher
- 11:15Events by persistence id
- 11:58All persistence ids SELECT DISTINCT persistence_id, partition T
- 13:06Events by tag
- 17:13Akka Persistence Cassandra Replay
- 18:27Non blocking asynchronous replay
- 19:01Benchmarks
- 19:52Alternative architecture
- 23:40Event time processing
- 25:07Ordering
- 25:50Distributed causal stream merging
- 27:54Exactly once delivery
- 30:50Optimisation
- 33:10Table and stream duality
- 35:23Infinite streams application
- 37:44Distributed systems
- 40:29Challenges
- 41:24Conclusion
related talks
48mUnlocking Real-time Insights: Enhancing Your Databases With Stream Processing
55mApache Cassandra — Streams and Memory
39mModern Event-driven Architecture: Adopting Data in Motion
47mPatterns for Persistence and Streaming in Cloud Architectures
01h 12mHidden pearls for high-performance-persistence in Java
42mContemporary Approaches to Data at Scale
45mData Modeling in an Event Centric World
31mApache Cassandra Analytics: A Recipe to Move Petabytes of Data
