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

Some APIs (e.g. Wikipedia) return 503 with lots of simultaneous requests #13

Open
ryanfb opened this issue Oct 21, 2016 · 0 comments
Open
Labels

Comments

@ryanfb
Copy link

ryanfb commented Oct 21, 2016

In loading the test page, a lot of the Wikipedia resources randomly show or don't show based on the Wikipedia API endpoint returning HTTP 503 (Service unavailable) randomly when a lot of requests are made at once.

There are a few different approaches that might help fix this:

  • set cache to true with requests (and make sure we're actually using cache?) so that we don't request all resources on every page load if they're already in the cache
  • make a per-service request buffer and request resources serially to avoid overload
  • only make requests on link mouseover instead of requesting all resources on page load (though this may result in unacceptable delay?)
  • make a request error handler that can retry requests after a (random, exponential backoff?) delay
@paregorios paregorios added the bug label Oct 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants