The Splitter EIP explains how to handle a scenario where the incoming request brings multiple elements in it and each element needs to be handled in a different manner.
The following image extracted from Gregor Hohpe's Enterprise Integration Patterns book illustrates a new order request from the input channel being split into multiple order items in the output channel:
Let's take an
InventoryManagementService as an example. Each store at the end of the day does bulk updates talking to the
InventoryManagementService running at the head office. Each update request will include a set of item records. Items are handled by ...