ExitExponential Backoff vs. Retry Policies1 / 7
Explanationassociate7 steps · 3 exercises

First decide whether to retry, then decide how long to wait

How to distinguish the delay before an eligible retry from the broader policy that determines which failures to retry and when to stop.

A retry policy decides whether an operation gets another attempt after a failure. It matches the failure against rules and checks whether there is room for another attempt. A read that was throttled may qualify; an invalid request usually needs to be corrected rather than sent again unchanged.

Exponential backoff is one timing rule a retry policy can use. It grows the delay before successive retries by a multiplier, up to a cap if one is configured. Backoff answers how long to wait before an allowed retry. It cannot make an error retryable or grant an extra attempt.

Next up: Sort the statements on what you just read.