Not CRUD Anymore: Migrating to Event-Driven CQRS Without a Big Bang
summary
A brownfield web app migrates incrementally to CQRS, DDD and event sourcing using Axon Framework and Axon Server while remaining live for ~10,000 daily users and ~1.5M events/day, running on ~75 microservice instances on AWS. Post‑commit JPA hooks push CRUD CDC messages over SNS/SQS (use FIFO SNS) then gradually switch to domain commands/events, synthesize ~20M historical events in batches, run replays of hundreds of millions of events (two‑day runs) and end with ~150 independent processors, and it works in production.
AI-written summary · about
chapters (17)
- 0:00Intro
- 0:14Welcome and introduction
- 1:33Rebuilding the airplane in flight
- 3:03The team and the application
- 4:13Where we started: everything in the browser
- 8:03Step 1: a pass-through proxy
- 9:33Step 2: change events after commit
- 13:35The infrastructure on AWS
- 15:03Step 3: bringing in Axon Server
- 16:58From CRUD calls to commands and queries
- 19:31Domain events instead of change events
- 22:21Updates over WebSockets
- 24:39Splitting command and query, and a monorepo
- 26:34Event sourcing at last
- 30:07Synthesizing events from history
- 32:35What it unlocked
- 34:40Q&A
