Type Alias ExponentialBackoffSettings

ExponentialBackoffSettings: {
    jitter?: number | null;
    maxDelay?: ITimeSpan;
    minDelay?: ITimeSpan;
    multiplier?: number;
}

Configuration for the exponential backoff policy. The wait time grows by multiplier after each failed attempt until capped by maxDelay. An optional jitter factor randomises the delay to avoid thundering-herd effects when multiple clients retry simultaneously.

IMPORT_PATH: "@daiso-tech/core/backoff-policies"

Type declaration

  • Optionaljitter?: number | null

    Adds randomness to the delay to avoid thundering-herd effects. Set to null to disable jitter.

    0.5
    
  • OptionalmaxDelay?: ITimeSpan

    Upper bound on the computed delay. The wait time will never exceed this value.

    import { TimeSpan } from "@daiso-tech/core/time-span";

    TimeSpan.fromSeconds(60)
  • OptionalminDelay?: ITimeSpan

    Starting delay for the first retry. Subsequent delays grow from this base.

    import { TimeSpan } from "@daiso-tech/core/time-span";

    TimeSpan.fromMilliseconds(500)
  • Optionalmultiplier?: number

    Base multiplication factor applied to the delay after each retry attempt. Larger values produce more aggressive growth in wait times.

    2