Hands-on intro to CQRS and Event Sourcing with Axon
summary
Live-coding builds a game-rental app that uses Axon Framework with Spring Boot, Reactor and RSocket, storing events in H2 or via Axon Cloud; commands (register, rent, return) map to aggregates and apply events, event sourcing reconstructs state, JPA projections maintain query views, and an UpdateEmitter pushes catalog updates. Demo shows business checks (stock, release date, renter match), consistent command routing, thrown exceptions on invalid commands, and viewing persisted events in the cloud UI — all within a 40-minute live session.
AI-written summary · about
chapters (11)
- 0:00Introduction to CQRS and DDD
- 4:33Setting up the project
- 8:05Configuring the application
- 10:20Defining the core API
- 15:21Implementing the command model
- 24:57Implementing the query model
- 30:07Adding query handlers
- 32:37Building the controller
- 35:03Connecting to Axon Cloud
- 38:27Live demo and testing
- 41:44Q&A and closing
related talks
55mHands-on introduction o CQRS and Event Sourcing with Axon
46mAxon Framework : A CQRS Approach to Microservices
30mEventSourcing and CQRS — The Introduction That Was Missing
19mAxonFramework @ SGCIB (our experience)
01h 12mDemystifying "event-based" software concepts and methodologies
01h 25mBuilding microservices with event sourcing and CQRS
46m" Slicing Monolith into a CQRS / Event sourcing microservice: joys and pains"
01h 07mAn Architecture with CQRS and Event Sourcing
