Performance & Edge

Request Coalescing

Direct Definition

Request coalescing, also called request collapsing, is a caching technique where many simultaneous requests for the same uncached resource are combined into a single upstream request. The first request fetches from the origin while the others wait and receive the same response.

Technical Architecture & Deep-Dive

When a popular cache entry expires, hundreds of clients may request it at the same moment. Without coalescing, all of them hit the origin at once, a thundering herd that can overload servers or exhaust third-party rate limits.

Coalescing ensures only one fetch per key is in flight. Combined with stale-while-revalidate, clients keep receiving the stale copy while a single background request refreshes the cache.

Key Architectural Benefits

Prevents thundering herd spikes on cache expiry.
Protects third-party API rate limits during traffic bursts.
Reduces duplicate upstream work and cost.
REALCOMPOSER EDGE WORKSPACE

Implement Request Coalescing at the Edge

Deploy lightweight API aggregation, edge caching, and secret injection in minutes without Docker containers or complex servers.

START BUILDING FREE

Frequently Asked Questions

Q:Does request coalescing work for POST requests?

Generally no. Coalescing is applied to cacheable, idempotent GET requests where every waiting client should receive the same response.

Related Architecture Concepts

Ready-to-Use Edge Recipes