RetryBudget
Defined in: src/retry-budget.ts:18
Caps retries relative to traffic, so a failing dependency gets at most ratio extra load instead of a retry storm
(every caller retrying 3x = 4x load exactly when the dependency is weakest). Share one budget across every pipeline
that calls the same dependency: addRetry({ budget }).
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new RetryBudget(
options?):RetryBudget
Defined in: src/retry-budget.ts:27
Parameters
Section titled “Parameters”options?
Section titled “options?”RetryBudgetOptions = {}
Returns
Section titled “Returns”RetryBudget
Methods
Section titled “Methods”stats()
Section titled “stats()”stats():
object
Defined in: src/retry-budget.ts:52
Requests and retries counted in the current window.
Returns
Section titled “Returns”object
requests
Section titled “requests”requests:
number
retries
Section titled “retries”retries:
number