Back to Catalog
Cloud
aws
Scatter-Gather
Send requests to multiple services in parallel and aggregate the responses
Intent & Description
The Scatter-Gather pattern sends requests to multiple services in parallel and aggregates the responses into a single response. The request is “scattered” to multiple services, and the responses are “gathered” and combined. This is useful when you need to collect data from multiple sources or when operations can be performed in parallel.
Real-world Use Case
Use when you need to retrieve data from multiple services simultaneously or when operations can be parallelized for improved performance.
Source
Advantages
- Parallel processing reduces latency
- Efficient for data aggregation
- Natural fit for distributed systems
- Can improve overall response time
Disadvantages
- Overall response time depends on slowest service
- Complex error handling
- Requires response aggregation logic