Question Investigation 8 What exactly is CQRS - herougo/SoftwareEngineerKnowledgeRepository GitHub Wiki

Source 1: ChatGPT

  1. Can commands call other commands?

    • short answer: In strict CQRS, no. A command handler is supposed to represent a single business intention (CreateInvoice, CancelOrder)
  2. What are API handlers in this case?

    • a concept outside CQRS
  3. 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.
  4. In CQRS, can commands return outputs?