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

Implement Smarter Rate Limiter #79

Closed
zoffixznet opened this issue Aug 4, 2017 · 1 comment
Closed

Implement Smarter Rate Limiter #79

zoffixznet opened this issue Aug 4, 2017 · 1 comment

Comments

@zoffixznet
Copy link

Currently we use a static rate limiter that just sleeps for 3 seconds 1 second between fetching dists. There's actually a GitHub API endpoint the builder script can access to see how many requests we still have available and then calculate the rate limit based on that.

In the end, I think this will let it update the site more often, as we'll scale the rate limit to the actual number of dists we have.

@timo
Copy link

timo commented Oct 9, 2017

i'd say what we've implemented recently covers this. the updater now does the github requests at "full speed" most of the time.

@timo timo closed this as completed Oct 9, 2017
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

No branches or pull requests

2 participants