--- url: "https://www.enterpriseintegrationpatterns.com/patterns/conversation/Aggregator.html" titulek: "Scatter-Gather - Enterprise Integration Patterns 2" h1: "" popis: "Enterprise Integration Patterns" jazyk: "en" kanonicka: "" drobecky: [] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-15 14:54:12" znaku: 3253 slov: 450 kodovani: "utf-8" sha256: "6c4b385e6e1b3bd385ebac9390b987095694376c21f74e24d2d2c96632da851f" --- | | Scatter-Gather[Conversation Patterns](index.html) » [Intermediaries](MultiIntro.html) | [Contents](toc.html)[⇐ Prev](LoadBalancer.html)[Next ⇒](ManagementIntro.html) | | --- | --- | --- | A participant requires a responses from a number of participants. How can a participant solicit responses from a number of participants without connecting to all of them? A participant may want responses from multiple partners, for example top select the best offer.A participant may not be aware of all partners who can respond to its request.Sending requests to each partner can introduce complexity and overhead. A *Scatter-Gather* propagates a request to multiple providers and aggregates the responses. The *Scatter-Gather* conversation involves the following participants: - The *Requestor* initiates the conversation by sending a *Request* message to the *Provider* - The *Scatter-Gather* waits for incoming requests, which it relays to a (known or unknown) number of *Providers* . It also processes *Response* messages from *Provider* s. - The *Provider* s wait for incoming *Request* messages and respond with *Response* messages. *Scatter-Gather* is the conversational view of the asynchronous [*Scatter-Gather*](/patterns/messaging/BroadcastAggregate.html). Instead of using an asynchronous flow of messages, it engages with both the *Requestor* and the *Providers* in a [*Asynchronous Request-Response*](RequestResponse.html) conversation. A stateful *Scatter-Gather* can simplify the role of the [*Aggregator*](/patterns/messaging/Aggregator.html) in [*Scatter-Gather*](/patterns/messaging/BroadcastAggregate.html). Most *Scatter-Gather* do not make requests to the *Provider*s sequentially, but concurrently. Internet commerce commonly uses *Scatter-Gather* in form of so-called "aggregators" when purchasing products or services. Unfortunately the name collides with the [*Aggregator*](/patterns/messaging/Aggregator.html) pattern, which is only a portion of the solution. These "aggregators" are a powerful economic force because they typically have a high search page rank, which gives them more search traffic than the actual providers. For example, Internet searches for "insurance" will likely have an insurance aggregator as the top listing. Such business provide a benefit to the consumer (the *Requestor* in our vocabulary) as it selects the best deals or orders all offers by price. *Provider*s are commoditized in this process, meaning the *Requestor* does not distinguish the selection by the brand of the *Provider* or the product details, but only selects by price. This puts *Provider*s under economic pressure and often increases the power of the *Scatter-Gather*, which often translates into higher commissions being paid from the *Provider* to the *Scatter-Gather*. The *Requestor* has to trust the *Scatter-Gather* to ask the "right" *Providers* and to select the "best" result neutrally and in the best interest of the *Requestor*. ## Example: Check24 Check24 is a popular German Internet portal that aggregates offers for many products and services, including insurance, banking, utilities, mobile phones, and travel. **Related patterns:**[*Aggregator*](/patterns/messaging/Aggregator.html), [*Scatter-Gather*](/patterns/messaging/BroadcastAggregate.html), [*Asynchronous Request-Response*](RequestResponse.html) ---