Skip to content

RetryBudgetConfig

Defined in: src/core/types.ts:245

Caps retries per partition to a fraction of its recent traffic. A retry is allowed only while retries < max(minRetriesPerSec * windowMs / 1000, ratio * requests) over the last windowMs, where requests counts first attempts. Past that, the ticket fails with its last error instead of waiting. Opt-in: no budget applies unless one is configured.

ratio: number

Defined in: src/core/types.ts:247

Retries allowed per first attempt in the window, e.g. 0.1 = 10%.


windowMs: number

Defined in: src/core/types.ts:249

Length of the sliding window in ms.


optional minRetriesPerSec?: number

Defined in: src/core/types.ts:252

Floor that lets a low-traffic partition retry at all.

DEFAULT_MIN_RETRIES_PER_SEC