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

Adjust request poll intervall for API rate limiting #6

Open
twiebe opened this issue Aug 14, 2020 · 2 comments
Open

Adjust request poll intervall for API rate limiting #6

twiebe opened this issue Aug 14, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@twiebe
Copy link
Member

twiebe commented Aug 14, 2020

Currently the synchronous API client will poll asynchronous requests every 0.5s. This makes hitting the API rate limit quite likely once you introduce concurrency.

For the API client to not feel sluggish, the poll intervall likely shouldn't simply be increased to a few seconds. It could be dynamically increased to a max and/or be request type-dependent.

@neur0manc
Copy link

Is there a way to implement web sockets in the back-end? This would make polling unnecessary. And feel much more native. The client would then just subscribe to the request_uuid and if something changes in the back-end the client is notified.

@bkircher
Copy link
Contributor

a way to implement web sockets in the back-end

Absolutely. Good point. Nothing concrete planned on that front though so polling it is until then.

@bkircher bkircher added the enhancement New feature or request label Dec 3, 2020
@bkircher bkircher removed their assignment Jun 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants