-
Notifications
You must be signed in to change notification settings - Fork 121
Description
CQRS (but not necessarily CQS) typically implies that you maintain a completely separate domain model for your Command side and your Query side.
With that in mind, this example seems to be leading people astray and doesn't really communicate the essence of CQRS.
Reason being, the command handlers and the query handlers in this example repo are both using the same domain model.
Shared Domain Model
Repo for the Domain Model
Command Handler
Query Handler
I would love to see this example repo updated to give a more realistic depiction of how to utilize CQRS and DDD patterns. I understand that this was put together primarily for giving a brief conference talk, but I think there's really a missed opportunity for education here.
As it stands now, Nest's attempt to steer people towards CQRS/DDD/reactive patterns seems to just cause confusion and raise more questions than it actually answers. Which is a shame, because Nest really seems primed to be a leader in this space.



