GraphQL and CQRS, a Perfect Fit
summary
A demo gift‑card system implements create, redeem and cancel using event‑sourced CQRS and shows practical GraphQL mutation patterns: commands go through Axon Server and Axon Framework, projections live in MongoDB, the GraphQL layer runs on Deno with Yoga and uses server-sent events for subscriptions and webhooks. Mutations return a union of success, command error, or fetch/timeout; timeouts are configurable. The pipeline reliably rebuilds projections and serves fast eventual consistency in practice.
AI-written summary · about
chapters (7)
- 0:00Introduction and context
- 2:15Understanding CQRS basics
- 5:08Gift card application demo
- 6:57Architecture and data flow
- 8:37Mutations and handling errors
- 12:33Querying and subscriptions
- 13:58Demo and Q&A
related talks
22mGraphQL and CQRS, a Perfect Fit?
52mCQRS, DDD and GraphQL, a perfect fit?
46mCQRS, DDD and GraphQL, a perfect fit
50mHands-on intro to CQRS and Event Sourcing with Axon
55mGraphQL - APIs the New Way
46mAxon Framework : A CQRS Approach to Microservices
55mHands-on introduction o CQRS and Event Sourcing with Axon
48mBuilding secure GraphQL APIs without the Boilerplate
