DDD — Command Query Responsibility Segregation (CQRS)

Phillip Johnson
CodeX
Published in
5 min readMar 20, 2022

Photo by hannah joshua on Unsplash

Commands are complex, Queries are simple

Previously we’ve looked at DDD Entities, that have state, and Events, where state changes. To reduce complexity we can be specific about what has state and encapsulate where it changes. Events are high level code, sitting in the middle of the Onion Architecture. In this article, we will look at how lower…

Phillip Johnson
CodeX
Writer for

Over 20 years experience in software engineering, mostly in Tech Lead and Lead Dev positions. Passionate about software craftsmanship.