Library/Architecture Patterns/CQRS: Command Query Responsibility Segregation
Architecture Patterns

CQRS: Command Query Responsibility Segregation

CQRS separates reads and writes into independent models - writes go to a normalized database, reads come from denormalized views, and events sync them together.

CommandQueryEventual ConsistencyEvent SourcingRead ModelWrite ModelData SynchronizationMessage Queue (Kafka, RabbitMQ)ACID TransactionsBASE Transactions

Practice this topic with AI

Get coached through this concept in a mock interview setting

Start Practice
CQRS: Command Query Responsibility Segregation diagram

CQRS: Command Query Responsibility Segregation - System Design Diagram

Ready to practice?

Our AI coach will quiz you on this topic and give real-time feedback

Practice This Topic