AlgoViz

Retries

medium 30 min

A retry repeats a failed call in the hope that the problem was short.

Where it shows up

The same pattern appears across everyday software.

  • TCP

    Lost segments are sent again after a timeout that doubles each time. Most people never notice how often their network retries.

  • AWS SDKs

    They retry by default, with a token bucket that limits retries in an outage. The Builders' Library says this was added in 2016.

  • gRPC

    A retry policy lists the status codes to repeat, the number of attempts and the backoff. Calls the server never saw can be repeated transparently.

  • Envoy

    A proxy that can limit retries with a budget, as a percentage of active requests.

  • Databases

    A deadlock has a victim. The application must run its whole transaction again, not only the last statement.

  • Message queues

    A message that is not acknowledged is delivered again. Consumers must be ready to see it twice.