Logo
Grokking Microservices Design Patterns
Ask Author
Back to course home

0% completed

CQRS Pattern: A Solution

Command Query Responsibility Segregation (CQRS) is a design pattern in software architecture that helps solve the kind of problem we just discussed. To understand it better, let's break down the term:

  • Command: This refers to an instruction to do something, like creating, updating, or deleting data (i.e., CUD operations). In our banking example, a command would be processing a deposit or a withdrawal.
  • Query: This is a request to retrieve data without changing it. Checking your account balance in the banking app is a query.

.....

.....

.....

Like the course? Get enrolled and start learning!