liveBook · Manning

Command channel

As explained in Microservices Patterns, Second Edition

A command channel is a message channel through which a participant receives command messages.

A command channel is a point-to-point message channel through which a saga participant receives commands from an orchestrator. Each participant has its own command channel. section 10.2.4 section 11.1.2

Commands specify an operation and its parameters. When the operation returns a response, the command also specifies a reply channel; the reply reports success or failure and may include data. One-way notifications can avoid waiting for a response when an operation does not return data or fail because of business-rule violations. section 10.2.4

Figure 10.12 The design of the orchestration-based Create Order Saga that uses asynchronous messaging. The orchestrator is embedded in the Order Service. The orchestrator sends command messages to the other participants via their command channels. They send replies to the saga’s reply channel.
simple create order orchestration design async

The diagram shows an Order Service orchestrator sending commands to participant-specific channels and receiving replies on a separate channel. section 10.2.4

How Microservices Patterns, Second Edition covers it

How deep it goes
Specifies point-to-point delivery and participant-specific channels, alongside command and reply message responsibilities.
Examples
Uses the Order Service's Create Order Saga, where the orchestrator sends commands to participant channels.
What you can do after
Understand how participant-specific command channels route saga commands and relate to replies.
How it connects
Connects saga orchestration with command messages, reply channels, and request/asynchronous-response interactions.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Microservices Patterns, Second Edition. The section links point to the parts of the book it draws on.