CQRS Pattern

Command Query Responsibility Segregation (CQRS) it segregates the responsibilities of the command (Write operations) and Query (Read Operations), which means it separating the functionalities by perform different tasks it makes optimization of system.

Advantages:

-> Allows Independent Scaling of read and write workloads.

-> Maintains Loose Coupling

Disadvantages:

-> Complex to design

-> Dealing with eventual consistency is a challenge