LEVEL 4 · SYSTEMS

Hedged Request Lab

Help client developers evaluate delayed duplicate requests for safe reads. Send a second attempt only after a configurable delay, accept the first valid response, and record cancellation, late completion and duplicate service work separately. Export a bounded HTTP client and a latency-versus-work report from controlled local endpoints.

4 stages~8 hoursGocore
YOU END UP WITH

Hedged-read client, controllable endpoint fixtures and latency/work comparison receipt

PROJECT OUTLINE

Hedged Request Lab in 4 stages

Measure the extra work required to escape a slow read request.

  1. Measure safe-read latency

    Summarize observed samples without inventing a performance guarantee.

    starter · ~2 hours · Go

    percentilessafe readsmeasurement
  2. Schedule delayed duplicate attempts

    Launch a second safe read only when the delay expires before a winner.

    core · ~2 hours · Go

    timersoverlapdeadline
  3. Validate winners and account for late work

    A fast error cannot win, and cancellation is an observation rather than a billing guarantee.

    core · ~2 hours · Go

    valid winnerlate resultscancellation
  4. Export latency and duplicate-work tradeoffs

    Report both faster responses and the extra requests that produced them.

    core · ~2 hours · Go

    comparison receiptservice workconsumer

Build these projects first

All projects · Course catalog · Source on GitHub