In an asynchronously messaging saga, the command producer outbound adapter sends commands from the orchestrator to participant services. It works alongside participant command handlers, command channels, and an inbound reply handler. section 10.2.4
Choose the interaction style to match the operation:
- Use request/asynchronous-response when the orchestrator needs the operation’s response. Define a command with the operation and parameters, and a reply channel; the reply indicates success or failure and may contain data. section 10.2.4
- Use a one-way notification for operations that return no data and cannot fail because of business-rule violations. The orchestrator does not wait for a reply. 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.
The Create Order Saga diagram shows the orchestrator sending commands through participant command channels and receiving replies on its saga reply channel. section 10.2.4
