priyanka
priyanka

Reputation: 472

Why CQRS is called as MicroServices Design Pattern and Not Monolithic Design Pattern?

The CQRS pattern splits the application into two parts: the command side and the query side. The command side handles create, update, and delete requests. The query side runs the query part by using the read replicas.

This thing can be achieved in Monolithic architecture as well, there also we could have a write replica and read replica. Then Why this pattern is called as a Microservices Design Pattern.

Can somebody explain this and correct me if my understanding is wrong about it?

Upvotes: 2

Views: 960

Answers (2)

Nitin Gaur
Nitin Gaur

Reputation: 1136

CQRS is one of several application architecture patterns. It does not depend upon how the application is deployed.

Upvotes: 0

Shubham
Shubham

Reputation: 297

CQRS pattern solves the problem,

"How to implement a query that retrieves data from multiple services in a microservice architecture?"

Read here

API Composition pattern is a slower alternative to CQRS.

Upvotes: 0

Related Questions