Hands-on introduction o CQRS and Event Sourcing with Axon
summary
Hands-on demo builds a tiny conference app with Axon Framework, Spring Boot, Kotlin and Postgres, defining CreateConference command and ConferenceCreated event (plus AddTalk / TalkAdded), an event-sourced Conference aggregate that throws DuplicateTalkException when a title already exists, and a CommandGateway-driven controller. Events are persisted, an EventLogger prints them, JPA projections store Conference and Speaker views, and switching to a tracking event processor replays the full event stream to populate historical views. Snapshotting, AMQP transport and sagas for cross-aggregate transactions are discussed as production concerns.
AI-written summary · about
chapters (13)
- 0:00Introduction to talk
- 1:51CQRS and micro services
- 3:59Event sourcing basics
- 8:11Axon framework overview
- 9:18Setting up core API
- 13:13Command model implementation
- 19:35Adding controller
- 25:14Event logging
- 26:59Query model setup
- 30:13Adding speaker view
- 36:51Tracking event processor
- 38:59Demo recap
- 41:04Q&A session
related talks
39mPragmatic Microservices with DDD, CQRS and Event Sourcing Using Axon Framework
50mHands-on intro to CQRS and Event Sourcing with Axon
51mBootiful CQRS and Event Sourcing with Axon Framework
45mThe Practical Road towards CQRS and Event Sourcing
46mAxon Framework : A CQRS Approach to Microservices
47mCQRS and Event Sourcing on Steroids: Lessons Learned with Spring & Axon
30mEventSourcing and CQRS — The Introduction That Was Missing
50mEvent Driven Microservices with Axon and Spring Boot: excitingly boring
