Architecture
CQRS
A separate model for writes (commands) and another for reads (queries).
Article
CQRS: one model for changing, another for reading
Command Query Responsibility Segregation without overdoing it: from Bertrand Meyer's CQS, through three levels of CQRS, to projections and eventual consistency. Commands, queries and projections in C#, TypeScript, Java, Go and Python.
Related articles
- Vertical slice architecture: code by feature, not by layer
Jimmy Bogard's Vertical Slice Architecture: every feature of the system is a separate slice from the endpoint to the database. Structure and a complete slice in C#, TypeScript, Java, Go and Python,…
- Mediator: components talk through a coordinator
The Mediator pattern through the order form of a pierogi place: the delivery choice, address, time slot and button do not know each other, and the rules of their cooperation live in one place. Plus…
- Event sourcing: store the facts, not just the latest state
State as a sequence of immutable events: streams, rehydration by folding, optimistic concurrency, projections, snapshots and event versioning. An aggregate and an event store in C# (Marten),…
- Command: a request wrapped in an object
The Command pattern through a waiter's terminal in a pierogi place: every action on the ticket is an object with execute and undo, so it can be undone, redone, kept in a history and sent to a queue.…
Challenges
Around the topic
- Clarified CQRS article · web · Udi Dahan
- CQRS: Command Query Responsibility Segregation (2011) article · web · martinfowler.com
- CQRS Pattern article · web · Microsoft Azure Architecture Center
- 57. O faktach i mitach wzorca CQRS z Oskarem Dudyczem podcast · apple-podcasts · Better Software Design
- Greg Young - CQRS and Event Sourcing - Code on the Beach 2014 video · youtube · Code on the Beach
- bliki: Command Query Separation article · web · Martin Fowler
- CQRS & Event Sourcing Code Walk-Through video · youtube · CodeOpinion
- Microservices Pattern: Pattern: Command Query Responsibility Segregation (CQRS) article · web · Chris Richardson (microservices.io)
- Building a CQRS/ES web application in Elixir using Phoenix article · web · 10consulting.com
- CQRS, System Maintainability, and Pragmatic Tech Choices with Dejan Miličić podcast · apple-podcasts · The Modern .NET Show
- JCON Report, Part 5 (#53): CQRS, JOOQ, GraphQL, API, Vaadin, OpenRewrite, ErrorProne, Gateways,... podcast · apple-podcasts · Foojay.io | Friends of OpenJDK and Java Programming
- nestjs/cqrs repo · github · nestjs
- kyhsa93/nestjs-rest-cqrs-example repo · github · kyhsa93
- SunDDDay discussion: CQRS & Event Sourcing systems with Alexey and Marco podcast · apple-podcasts · Virtual Domain-driven design
- CQRS krok po kroku | Tomasz Stolarczyk video · youtube · devstyle
- Introduction to Event Sourcing ...and cqrs presentation · web · Vladik Khononov
- Udi Dahan - If (domain logic) then CQRS, or Saga? video · youtube · Domain-Driven Design Europe
- Q&A: Messaging, CQRS & Event Sourcing! video · youtube · CodeOpinion
- slashdotdash/awesome-elixir-cqrs repo · github · slashdotdash
- Sara Pellegrini - Talk Session: What CQRS and Event Sourcing Taught Me About DDD video · youtube · Explore DDD
- Microservice Patterns and Best Practices: Explore patterns like CQRS and event sourcing to create scalable, maintainable, and testable microservices book · openlibrary · Vinicius Feitosa Pacheco
- Derek Comartin - Fat Controller CQRS Diet video · youtube · Explore DDD
- Should you use the Repository Pattern? With CQRS, Yes and No! video · youtube · CodeOpinion
- kgrzybek/sample-dotnet-core-cqrs-api repo · github · kgrzybek