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

Configuration for the linear backoff policy. The wait time increases linearly with each retry attempt and is capped at maxDelay. An optional jitter factor randomises the delay to spread out concurrent retries.

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 linearly from this base.

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

    TimeSpan.fromMilliseconds(500)