Scatter-gather
Definition
Scatter-gather splits a request into parallel sub-requests (scatter), waits for their results and combines them (gather), for example into a merged top-k list.
In practice
Search engines, sharded databases and feed aggregators use it whenever data is partitioned in a way the query cannot target: a document-partitioned search index must ask every shard, and a NoSQL query without the partition key hits every partition. Parallelism keeps the median low even with hundreds of shards.
The cost is tail amplification: if each shard is slow 1% of the time, a request to 100 shards waits on at least one slow shard with probability 1 − 0.99^100 ≈ 63%. Hedged requests, deadlines with partial results and replicas per shard tame the tail. Queries that can include a shard key should, so they touch one partition instead of all.
Example
A search broker queries 50 index shards for their local top 10, merges 500 hits into the global top 10, and returns partial results if 2 shards miss the 150 ms deadline.