Skip to content

[ENG-125] Add support for retries with exponential backoff for rate limit errors#7

Merged
jrebocho merged 3 commits intomainfrom
feat/eng-215-add-exponential-backoff-for-rate-limit-errors
Apr 20, 2023
Merged

[ENG-125] Add support for retries with exponential backoff for rate limit errors#7
jrebocho merged 3 commits intomainfrom
feat/eng-215-add-exponential-backoff-for-rate-limit-errors

Conversation

@jrebocho
Copy link
Copy Markdown
Contributor

Now when making calls to the StackOne API, if the response has a status code that
belongs to the list of codes that can be retried, it will make retries
with exponential backoffs. This means that API client will keep trying
until the max number of retries is reached and increasing the timeout value for each
time.

By default, only responses with 429 status code, related to rate limiting are
retried.

The API call block will be called in a method that checks if the
request failed or not. If the response status code falls in one of the
configured status, it will make retries with exponential backoff.
@jrebocho jrebocho force-pushed the feat/eng-215-add-exponential-backoff-for-rate-limit-errors branch from cd94f42 to fc45a84 Compare April 20, 2023 11:47
@jrebocho jrebocho merged commit 153a7c5 into main Apr 20, 2023
@jrebocho jrebocho deleted the feat/eng-215-add-exponential-backoff-for-rate-limit-errors branch April 20, 2023 11:52
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