Skip to content

Files

Latest commit

Dec 18, 2019
7d0a5c0 · Dec 18, 2019

History

History
This branch is 1955 commits behind iluwatar/java-design-patterns:master.

cqrs

README.md

layout title folder permalink categories tags
pattern
CQRS
cqrs
/patterns/cqrs/
Architectural
Performance
Cloud distributed

Intent

CQRS Command Query Responsibility Segregation - Separate the query side from the command side.

Class diagram

alt text

Applicability

Use the CQRS pattern when

  • you want to scale the queries and commands independently.
  • you want to use different data models for queries and commands. Useful when dealing with complex domains.
  • you want to use architectures like event sourcing or task based UI.

Credits