IT:AD:Patterns:CQRS

Summary

Command and Query Responsibilty Segration (CQRS) is the application of the “Command/Query Separation Principle” of separating data retrieval from data modification by using Query and Command objects.

ACiD/

  • Advantages:
    • Well suited to Design by Contract (DbC).
    • Makes code more legible.
  • Considerations:
    • Not great in multi-threading environment or reentrant.