Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to adapt CQRS to projects? [closed]

I came across a new term named CQRS (Command Query Responsibility Segregation) which states that the conceptual model should be split into command model and query model as a typical CRUD model in which the command and query happens in the same model. The article has all theory information.

I don't understand how I should implement this in a project with ASP.net MVC3, EF 4.3 and jQuery.

Can anybody suggest me how to practically implement it in my project?

like image 287
Jack Avatar asked Oct 12 '12 02:10

Jack


People also ask

What is the difference between CQS and CQRS?

CQRS takes the defining principle of CQS and extends it to specific objects within a system, one retrieving data and one modifying data. CQRS is the broader architectural pattern, and CQS is the general principle of behaviour.

When should CQRS be used?

When to use CQRS pattern. Consider CQRS for the following scenarios: Collaborative domains where many users access the same data in parallel. CQRS allows you to define commands with enough granularity to minimize merge conflicts at the domain level, and conflicts that do arise can be merged by the command.

What is complimented by command query responsibility segregation?

Command query responsibility segregation (CQRS) is an application architecture pattern. This pattern is often used in event driven applications and is frequently associated with event sourcing. It consists of separating the logic that handles commands from the logic that handles queries.


1 Answers

CQRS Journey is a good place to start. I also suggest you watch A Journey into CQRS on Channel9.

Anyway, the best thing to learn CQRS is to try it by yourself. For me, I have to learn how to adapt it to my projects for around 6 months.

like image 146
Ekk Avatar answered Sep 20 '22 20:09

Ekk