CQRS, DDD and GraphQL, a perfect fit
summary
Claims that CQRS + DDD + GraphQL form a practical stack and shows a runnable webshop: GraphQL (using Hot Chocolate and the Nitro IDE) sits as the presentation layer exposing a ubiquitous schema, business rules move into domain entities, reads and writes split into Mediator-handled commands and queries so each is independently testable, and data fetching uses a data loader that batches requests. Implementation details include abstracting Entity Framework with a unit‑of‑work repository, using keyset pagination, mutations returning a read model (remove-stock returns the updated product or a transaction ID for subscription-driven eventual consistency). Nine demos are prepared, four are shown.
AI-written summary · about
chapters (20)
- 0:00🚀 Welcome and Introduction
- 1:30The Power of GraphQL in Business Layer Design
- 3:00Facebook’s Design Decisions Behind GraphQL
- 5:30The Data Loader Pattern in GraphQL
- 8:00Key Pagination and Performance Considerations
- 10:00Building Software That Lasts – Clean Architecture
- 12:30Separation of Concerns and Layered Architecture
- 15:00Understanding the Domain Layer and Business Rules
- 17:00Introduction to CQRS and its Role in Scalability
- 19:00Mutations and Queries in GraphQL
- 21:00Designing for Eventual Consistency in GraphQL
- 24:00How CQRS Enhances GraphQL Operations
- 26:30Domain-Driven Design (DDD) and its Application in GraphQL
- 29:00Mapping Entities and Value Objects to GraphQL Schema
- 31:00Making Business Logic Testable and Maintainable with DDD
- 33:00How to Organize Your GraphQL API with CQRS and DDD
- 36:00Demonstrating CQRS, DDD, and GraphQL in Practice
- 38:00The Importance of Testability and Maintainability
- 40:00Scaling and Evolving Your Software Over Time with CQRS
- 42:00Final Thoughts on DDD, CQRS, and GraphQL
related talks
52mCQRS, DDD and GraphQL, a perfect fit?
21mGraphQL and CQRS, a Perfect Fit
41mGraphQL: The Good Parts
50mDistributed GraphQL APIs: Breaking Down Monoliths & Unlocking Agility for Dev Teams
55mGraphQL - APIs the New Way
52mHot Chocolate: GraphQL Schema Stitching with ASP.Net Core
59mBuilding GraphQL APIs in C#
01h 05mBuilding modern applications with GraphQL 2023 and beyond in ASP.NET Core 7
