BackoffOptions
@rotorsoft/act-root / act/src / BackoffOptions
Type Alias: BackoffOptions
BackoffOptions =
object
Defined in: libs/act/src/types/reaction.ts:195
Per-reaction retry backoff configuration. When set, the drain controller defers the next attempt at this stream until the computed delay has elapsed.
Backoff state lives in process memory on the DrainController.
With N competing workers (each running its own controller), retries
escalate at most Nร faster than configured โ the shared retry counter
on the stream watermark climbs across workers, reaching the
blockOnError threshold sooner. This is intentional: per-worker pacing
speeds up recovery on transient per-worker faults, and poison messages
still get quarantined.
Propertiesโ
baseMsโ
readonlybaseMs:number
Defined in: libs/act/src/types/reaction.ts:197
Base delay (must be โฅ 0)
jitter?โ
readonlyoptionaljitter?:boolean
Defined in: libs/act/src/types/reaction.ts:199
Multiply final delay by 0.5 + random() (range
[0.5, 1.5)) to avoid thundering herds when many streams retry in
lockstep
maxMs?โ
readonlyoptionalmaxMs?:number
Defined in: libs/act/src/types/reaction.ts:198
Optional cap; only used by exponential
strategyโ
readonlystrategy:BackoffStrategy
Defined in: libs/act/src/types/reaction.ts:196