# Scatter-Gather

> Send requests to multiple services in parallel and aggregate the responses

- **Category**: Cloud
- **Subcategory**: aws
- **Canonical URL**: https://designpattern.fyi/patterns/aws_scatter_gather/

---

## 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.


## Use Cases
Use when you need to retrieve data from multiple services simultaneously or when operations can be parallelized for improved performance.





## Trade-offs


### Advantages

- Parallel processing reduces latency

- Efficient for data aggregation

- Natural fit for distributed systems

- Can improve overall response time




### Considerations & Drawbacks

- Overall response time depends on slowest service

- Complex error handling

- Requires response aggregation logic







---
**Reference**: [Original Source](https://docs.aws.amazon.com/prescriptive-guidance/latest/cloud-design-patterns/scatter-gather.html)

