The Detour EIP explains how to treat a message in different ways based on a certain state of the message. In a normal scenario it will flow through the default route. Under some circumstances it will take a different route. This optional route can be picked on certain criteria. It can be statically configured or dynamically picked based on the message content.
Let's take an
OrderProcessingService as an example. Orders can be placed by anyone outside the company by invoking the
OrderProcessingService. Or else customers can come to the company and hand over an order request in a paper to the staff. In the second case, ...