Basic Usage
Retry Timing
With default config:Retry Modes
Jitter
Add randomness to prevent thundering herd:Custom Retry Conditions
Callbacks
Circuit Breaker Integration
Combine with circuit breakers:Best Practices
Always use backoff
Always use backoff
Immediate retries can overwhelm failing services.
Set reasonable max_attempts
Set reasonable max_attempts
3-5 is usually enough. More than that, the service is probably down.
Add jitter
Add jitter
Prevents all clients from retrying at the same time.
Don't retry non-transient errors
Don't retry non-transient errors
400 errors won’t succeed on retry. Only retry 5xx and network errors.