Question Investigation 8 What exactly is CQRS - herougo/SoftwareEngineerKnowledgeRepository GitHub Wiki
Source 1: ChatGPT
-
Can commands call other commands?
- short answer: In strict CQRS, no. A command handler is supposed to represent a single business intention (CreateInvoice, CancelOrder)
-
What are API handlers in this case?
- a concept outside CQRS
-
In CQRS, what if you want to log to the database every time you query a user. Does this break CQRS?
- Strict CQRS: A query should never mutate domain state.
- Pragmatic CQRS: Logging, telemetry, and metrics are acceptable side effects as long as they don’t alter the domain model.
-
In CQRS, can commands return outputs?