Retry what is worth retrying. Stop hammering what is down.
Exponential backoff with jitter and Retry-After, a circuit breaker that opens before the outage spreads, and fallbacks that answer anyway. 4xx errors are never retried.
Read more.addRetry({ backoffType: 'exponential', useJitter: 'full' }).addCircuitBreaker({ consecutiveFailures: 5, breakDuration: '30s' }).addFallback({ fallbackValue: cached })