Skip to content

Retry Strategies

Retry strategies automatically re-attempt failed HTTP requests, improving resilience.

http.get('/api/data').pipe(
retry({
count: 3,
delay: (error, retryCount) => timer(Math.pow(2, retryCount) * 1000)
}),
catchError(err => of(fallbackData))
)

Retry with exponential backoff is the standard pattern for resilient HTTP calls.”