ConstantBackoffSettings: { delay?: ITimeSpan; jitter?: number | null }

Configuration for the constant backoff policy. Each retry waits for the same fixed delay, optionally randomised by a jitter factor to spread out thundering-herd retries across multiple clients.

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

Type declaration

  • Optionaldelay?: ITimeSpan

    Fixed wait duration applied between every retry attempt.

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

    TimeSpan.fromSeconds(1)
  • Optionaljitter?: number | null

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

    0.5