Skip to content

Is this really CQRS? No separation between Command and Query domains. #28

@johncmunson

Description

@johncmunson

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

model

Repo for the Domain Model

repo

Command Handler

command

Query Handler

query

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions