CQRS (Command Query Responsibility Segregation)

Use separate models for updating data (commands) and reading it (queries).

CQRS splits the write side, which enforces business rules, from one or more read models optimised for queries. It helps when read and write workloads or shapes differ greatly, and pairs naturally with event sourcing. For most simple CRUD domains it adds unnecessary complexity, and separate read stores introduce eventual consistency.

Type
Architecture pattern
Category
Architecture
License
Free
Pricing
Free
Level
Advanced
Technologies
architecture, ddd
Last verified
26 Nov 2026

What CQRS (Command Query Responsibility Segregation) is used for

  • Complex domains with very different read/write needs
  • High-read systems with denormalised views

Strengths

  • Independently optimised reads and writes
  • Clearer domain model on write side

Limitations

  • Extra complexity
  • Eventual consistency between models

How it relates to other tools

  • CQRS (Command Query Responsibility Segregation) works with Event sourcing

Built with the same technologies

Official links

Sources

Explore