Re:Better Software Design with Clean Architecture
by UK-AL on Monday July 03, 2017 @07:25AM
(#14687439)
CQRS and entity central solutions normally go together like peas in pod.
Command side has a domain model, which would be your business objects in this case. A command simply loads the entity, performs a method on it, saves it.
Query has a query model which designed for fast reads, normally built by events emitted by the domain model.
Practically speaking, I find that abstracting a system into a set of commands and a set of queries (i.e. CQRS) is often the "right" solution. Each command/query encapsulates an individual use-case, and all of the business rules and database access required.