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

Is there a way for me to see my current rate limit? #51

Open
Zackaryia opened this issue Apr 2, 2023 · 2 comments
Open

Is there a way for me to see my current rate limit? #51

Zackaryia opened this issue Apr 2, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@Zackaryia
Copy link

As the title says, is there a way for me to see what my current rate limit usage is, if I have 10 requests left or if I have to wait for 3 seconds before my next request. Also does the API do rate limits per region as described here

"Remember that this rate limit is enforced per region."

@MingweiSamuel
Copy link
Owner

Short answer is no. Long answer is that Riven's rate limiter it's a bit more sophisticated than just N requests after S seconds, it can be tuned to control how much requests are spread out. Are you just trying to avoid having code look like its hanging on slow rate limits?

Rate limit is handled separately per region.

@MingweiSamuel MingweiSamuel added the question Further information is requested label Apr 3, 2023
@Zackaryia
Copy link
Author

The reason I want the "rate limit status" is so that I can know if I am approaching my limit, or if a certain job that I added is cloging my rate limit, or to know if I need to apply for a rate limit raise. I would like to put that data on a web dashboard and or log it.

It provides better transparency into my system which is always a positive

@MingweiSamuel MingweiSamuel added enhancement New feature or request and removed question Further information is requested labels Apr 16, 2023
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

2 participants