You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I implemented rate limiting with default values, so the storage being used is local memory and running uvicorn with 8 workers.
For a end point with rate limit 5/minute, when I am hitting the endpoint in a for loop, I am able to hit for more than 10 times without any rate limiting. Is it due to multiple workers?
But isn't the memory shared between workers, so that the rate limit should work across workers?
Describe the bug
I implemented rate limiting with default values, so the storage being used is local memory and running uvicorn with 8 workers.
For a end point with rate limit
5/minute
, when I am hitting the endpoint in a for loop, I am able to hit for more than 10 times without any rate limiting. Is it due to multiple workers?But isn't the memory shared between workers, so that the rate limit should work across workers?
To Reproduce
Expected behavior
N/A
Screenshots
N/A
Your app (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: