O'Reilly logo

Enterprise Integration with WSO2 ESB by Prabath Siriwardena

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Scatter and Gather (Simple)

The Scatter and Gather EIP explains how to handle a scenario where the incoming request has to be handled by multiple recipients and each recipient will reply back to form an aggregated response.

The following image extracted from the Enterprise Integration Patterns book by Gregor Hohpe illustrates a quote response from different vendors been gathered and aggregated to form the best quote:

Scatter and Gather (Simple)

Getting ready

Let's take a CabReservationService as an example. The CabReservationService will internally call three other business services to find the best taxi fare for a given destination.

We can implement the Scatter and Gather EIP ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required