Guides / Retries and backoff
Retries and backoff
Relay retries failed deliveries with exponential backoff and jitter. Attempts, the backoff curve and the dead-letter policy are configured per client.
Configure the retry policy
Pass a retries object when constructing the client. Every field is optional and falls back to the defaults in src/client.ts.
import { RelayClient } from "@acme/relay" const client = new RelayClient({ retries: { attempts: 5, backoff: "exponential" },});
Attempts are counted per event, not per endpoint. See Delivering events for how fan-out interacts with retries.