Riven icon indicating copy to clipboard operation
Riven copied to clipboard

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

Open Zackaryia opened this issue 1 year ago • 2 comments

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."

Zackaryia avatar Apr 02 '23 13:04 Zackaryia

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 avatar Apr 03 '23 18:04 MingweiSamuel

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

Zackaryia avatar Apr 03 '23 22:04 Zackaryia