OptionalbackoffThe multiplier applied to the backoff after each retry.
For example, with initialWaitMs: 447 and backoffFactor: 1.618,
the backoff is 447ms, 723ms, 1170ms and so on.
OptionalinitialThe backoff in milliseconds before the first retry: the longest the first wait can be.
It applies when no Retry-After header is present.
OptionaltimeoutThe maximum total time in milliseconds to spend retrying.
If the next wait would exceed this timeout, measured from the first request, the SDK returns the 429 error to the caller.
How the SDK retries rate-limited (429) responses.
When a service request receives a 429 status code, the SDK retries it with exponential backoff. It respects a
Retry-Afterheader given in seconds.Remarks
Without a
Retry-Afterheader, each wait is drawn at random between half the backoff and the whole of it, so that clients rate-limited at the same moment don't all retry together.Example