Command Query Responsibility Segregation
   HOME

TheInfoList



OR:

In
information technology Information technology (IT) is a set of related fields within information and communications technology (ICT), that encompass computer systems, software, programming languages, data processing, data and information processing, and storage. Inf ...
, Command Query Responsibility Segregation (CQRS) is a
system architecture A system architecture is the conceptual model that defines the structure, behavior, and views of a system. An architecture description is a formal description and representation of a system, organized in a way that supports reasoning about the s ...
that extends the idea behind command–query separation (CQS) to the level of services. Such a system will have separate interfaces to send queries and to send commands. As in CQS, fulfilling a query request will only retrieve data and will not modify the state of the system (with some exceptions like logging access), while fulfilling a command request will modify the state of the system. Many systems push the segregation to the data models used by the system. The models used to process queries are usually called ''read models'' and the models used to process commands ''write models''. Although its origin is usually attributed to Greg Young in 2010, everything indicates that the precursor of CQRS was Udi Dahan who in August 2008 published on his blog a training course that aimed to apply CQRS together with SOA and in more detail in December 2009 in the article Clarified CQRS.


References

{{reflist


External links


CQRS Journey by Microsoft patterns & practicesDDD/CQRS/Event Sourcing List

The CQRS Frequently Asked Questions
* ttps://www.cqrs.com/ Rethink How You Build Software Systems architecture Software architecture