racecurve
REQUEST HEDGING

When should the
backup start?

Replay a request trace. Find the delay that meets your deadline with the fewest extra attempts.

Loading the measured localhost trace…
Selected delay—
Held-out misses—
Held-out launches—

The delay curve

● Deadline misses   ● Extra attempts
Launch immediatelyBackup delay (ms)

Reading the result

Replay holds service times fixed as the delay changes. A busy backend can respond differently when it receives extra traffic. Use idempotent operations and validate the chosen policy under load.

On two shared execution slots, a 1.177 ms hedge reduced misses at 400 requests/s and raised them at 1,600 requests/s. See the load experiment and raw traces ↗

Algorithm, file formats and reproduction ↗