-
Notifications
You must be signed in to change notification settings - Fork 9
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
handle rate limiting #30
Comments
Host the hackmap via netlify.com, so that read requests hit their CDN. |
PR #28 implements conditional (if-not-modified) polling. For the initial load, it's only 2 API requests. One to get the issue list, and one to get the comments on the BKK Main Thread issue. I don't think that's causing the issue, but it's possible. We could investigate GitHub's graphql API. |
#40 fixes |
@waf was there any analysis on why we got rate limited last event? |
@djay sorry, just saw your comment (got lost in the noise).
|
@waf sounds great. One more feature we could potentially add later is to adjust the polling rate based on the number of users visible. Also, is it the case that polling isn't the problem if there are no updates since it returns 403 not modified? So potentially we could slow it down just when there are lots of updates? |
@djay sounds good. Yes, if the api returns 304 Not Modified, the polling shouldn't be an issue. Now that we have both features in (use auth for all calls, and poll only when the tab is visible), let's wait for the next hacknight and see how these features work. We can experiment with smarter polling rate adjustments and alternate data models if it's still a problem. |
Too many people logging in at once or polling at once, from a single IP (such as at an event) appears like abuse to github.
Need to work out if it was the polling or the
Options to solve
The text was updated successfully, but these errors were encountered: