Back to Developer Roadmap

Command Query Separation

src/data/roadmaps/software-design-architecture/content/command-query-separation@tLbckKmfVxgn59j_dlh8b.md

4.0475 B
Original Source

Command Query Separation

Command-Query Separation (CQS) is a software design principle that separates the responsibilities of a method or function into two categories: commands and queries. Commands are methods that change the state of the system, while queries are methods that return information but do not change the state of the system.

Visit the following resources to learn more: