Skip to content

Interface: RetryBudgetOptions ​

Defined in: api/rust-fetch.d.ts:121

A client-wide limit on retries, so a failing upstream doesn't get every request retried at once. Retries may add ratio of the first attempts in the last windowMs, plus minPerSecond per second of the window.

Properties ​

minPerSecond? ​

optional minPerSecond?: number

Defined in: api/rust-fetch.d.ts:125

Retries allowed per second of the window whatever the traffic. Default: 10


ratio? ​

optional ratio?: number

Defined in: api/rust-fetch.d.ts:123

Retries allowed per first attempt in the window, on top of the minimum. Default: 0.2


windowMs? ​

optional windowMs?: number

Defined in: api/rust-fetch.d.ts:127

How far back first attempts and retries count, in ms; the budget refills as it slides. Default: 10000

Released under the MIT or Apache-2.0 license.