Skip to content

feat(digital-ocean): add exponential backoff for API rate limiting#428

Open
RolandSherwin wants to merge 1 commit intomaidsafe:mainfrom
RolandSherwin:exp_backoff_on_rate_limit
Open

feat(digital-ocean): add exponential backoff for API rate limiting#428
RolandSherwin wants to merge 1 commit intomaidsafe:mainfrom
RolandSherwin:exp_backoff_on_rate_limit

Conversation

@RolandSherwin
Copy link
Copy Markdown
Member

Detect HTTP 429 responses and retry with exponential backoff instead of failing immediately. Uses 30s initial delay with 2x multiplier, capped at 5 minutes, with 20% jitter to prevent thundering herd. Respects Retry-After header when provided by the API.

Detect HTTP 429 responses and retry with exponential backoff instead of
failing immediately. Uses 30s initial delay with 2x multiplier, capped
at 5 minutes, with 20% jitter to prevent thundering herd. Respects
Retry-After header when provided by the API.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant