A reply message communicates the outcome of processing a command. In asynchronous request/response, the service sends it to a reply channel identified by the client. section 8.3.1 section 8.3.2
To route and match replies:
- Include a reply-channel header in the command so the service knows where to send its reply. section 8.3.2
- Put a correlation ID in the reply; the client uses it to match the reply to its request. section 8.3.2
Figure 8.13 Implementing asynchronous request/response by including a reply channel and message identifier in the request message. The receiver processes the message and sends the reply to the specified reply channel.
Shows a command carrying the reply channel and message identifier used to return and match the reply. section 8.3.2
Order validation
The Consumer Service returns a ConsumerValidated reply to the Order Service; the Restaurant Service returns OrderDetailsValidated. The Order Service uses these outcomes to validate the order asynchronously. section 8.3.9
