Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The split-aggregate pattern sends an incoming request from the client to several target endpoints simultaneously. Then it combines all the responses from each back-end to a single response, and sends the response back to the client.
This pattern can be implemented in WSO2 EI using the Iterate mediator, Clone mediator and Aggregate mediator. The Iterate mediator splits the message into a number of different messages that are derived from the parent message using Xpath, and sends the messages to target endpoints using the same sequence. The Clone mediator sends the same message to target endpoints using different target sequences. The Aggregate mediator collects all the response messages and creates one response message.

...