Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce exponential backoff strategy for BitbucketCloudApiClient for rate-limiting #840

Open
thomas-boehm-tractive opened this issue Mar 28, 2024 · 0 comments · May be fixed by #841
Open

Comments

@thomas-boehm-tractive
Copy link
Contributor

What feature do you want to see added?

The BitbucketCloudApiClient currently uses a fixed wait time of 5 seconds if rate-limited.
As bitbucket rate-limit is hourly based, permanently waiting for 5 seconds doesn't seem to be very useful.
Especially if multiple requests are already rate-limited, the number of requests seems to be increasing unecessarily.

Therefore, I would propose to change the backoff strategy to an exponential one, in order to avoid lots of requests.

BitbucketServerApiClient seems to be already using an exponential backoff in the retry strategy.

Upstream changes

No response

Are you interested in contributing this feature?

yes, I already have solution on one of my local branches and will open a PR for further discussion in a few minutes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant