Hacker News new | ask | show | jobs
by daigoba66 3280 days ago
I've come to the exact same conclusion after spending time with these same types of systems.

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.

1 comments

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.