Systems · Patterns

Single-flight / request coalescing

Collapse concurrent identical work into one execution.

Single-flight / request coalescing

What it is

One in-flight computation per key; waiters share the result.

When to use

Hot cache misses, expensive idempotent recomputes.

Failure mode

Waiters pile up without a cap; multi-node still stampedes without coordination.

Lessons