2025 Slaying Three Dragons: Caching, AI and Analytics at Scale
summary
Three operational fixes and measurable results: circular deadlocks caused by aggregates emitting commands are removed by switching to choreography/sagas; a sequence-generator hydrate problem (320M events without snapshots vs 6.2M with snapshots) becomes cache size ONE using Caffeine and consistent hashing, dropping latency from ~700ms to 8ms globally distributed with a 100% hit rate (other aggregates 80–90%); tiered storage stays flat thanks to power‑law hotset caching; analytics run as Postgres projections + Grafana; Word2Vec recommendations reach ~150/200 applicability; runs on Axon Framework, Axon Server, AWS S3/SQS.
AI-written summary · about
chapters (18)
- 0:00Introduction and overview
- 1:31Architecture and event-driven systems
- 3:46First dragon: Deadlock in Axon
- 6:30Second dragon: Sequence ID hydration
- 10:04Caching and consistent hashing
- 13:34Topology change challenges
- 15:00Cache performance and hit rates
- 16:31Segment management in event store
- 17:37Power law distribution and caching
- 19:48Client demand for AI recommendations
- 20:39AI model training and challenges
- 23:27Embeddings and vector analysis
- 26:52AI results and business impact
- 29:45Real-time analytics with projections
- 33:18Business insights and fraud detection
- 36:20User behavior and adoption analysis
- 37:12Cybersecurity event-driven platform
- 39:24Q&A and future plans
