Skip to main content

Command Query Segregation

Definition

Command Query Segregation is an architectural pattern that separates operations that change state from operations that read state. This division allows for distinct optimization strategies for reads and writes, enhancing system performance and maintainability. By isolating data retrieval from data modification, it streamlines development and improves the robustness of applications.