Saturday, 23 July 2016

CQRS (Command Query Responsibility Segregation)

CQRS

While reading handling exception in scala I came know CQRS.
While digging into CQRS found best article by Martin Fowler from ThoughtWorks.
It stands for  Command Query Responsibility Segregation pattern.
Basically it means separate your Create, Update, Delete operation (Command) from read (query).
But it seems more complicated as compare to daily CRUD model.
It has its won importance.
Following two figures show regular  CRUD model and CQRS model by Martin Fowler.

Regular CRUD Model


CQRS Model


No comments:

Post a Comment