CQRS (EN)
TermPattern for separating read and write operations in distributed systems
Architecture
flowchart LR subgraph Client A[User Interface] end subgraph Command Side B[Command Handler] C[Command Model] D[Event Store] end subgraph Query Side E[Query Handler] F[Read Model] G[Read Database] end A --> B A --> E B --> C C --> D E --> F F --> G
In Context
- Typically used together with Event Sourcing
- Related to: Domain-Driven Design, Event Sourcing, DDD
- Example use: Applications with highly different read and write requirements