GraphQL and CQRS, a Perfect Fit?
summary
A concrete gift card demo implements CQRS with event sourcing: commands (issue, redeem, cancel) create events, projections live in MongoDB, and an Axon/Exon server acts as event store and router. GraphQL mutations send command messages over gRPC or JSON-over-HTTP from a Deno + Yoga endpoint, the mutation optionally waits with a timeout for the projection update, subscriptions are driven by emitted events, and idempotency uses per-aggregate sequence numbers. The stack proves workable though live demo reliability is variable.
AI-written summary · about
chapters (12)
- 0:00Introduction to CQRS
- 1:12Speaker background
- 2:37CQRS fundamentals
- 4:29Implementation strategies
- 6:39System complexities
- 7:32Demo project overview
- 8:00GraphQL integration
- 9:32Technical architecture
- 12:22Commands and queries
- 17:02Subscription workflow
- 19:09Evolution and modeling
- 20:30Conclusion and Q&A
related talks
21mGraphQL and CQRS, a Perfect Fit
01h 05mDDD, event sourcing and CQRS – theory and practice
50mAn Introduction to CQRS and Event Sourcing Patterns
55mGraphQL - APIs the New Way
26mEvent-Sourcing your React-Flux applications
46mFunctional CQRS in Kotlin
44mReactive Applications with Event-Sourcing and Server-Sent Events
01h 19mGraphQL Mesh - A Federated Gateway for Any API Protocol - GraphQL, OpenAPI, gRPC and More
