-
Notifications
You must be signed in to change notification settings - Fork 459
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
Rolling window limits? #32
Comments
Windowed limits are not currently supported. |
Would you be interested in something like https://github.com/brandur/redis-cell? |
@andrascz it might be interesting to support something like that, though I think to be useful we would need to support those commands with whatever sharding/cluster system is being used. A single redis host is not going to scale in most deployments. |
I am not 100% sure as I did not try it on cluster, but based on brandur/redis-cell#30, either it is already working or needs minimal tweaks. |
@mattklein123 If the |
Can you describe more what you are proposing? |
There are two possible approaches to support rolling window limits:
The first approach would create a dependency on |
In general I think (2) is better, but I have no objection to having an option that requires redis-cell as long as it is opt-in. |
Has there been a decision on an algorithm for rolling window rate limiting yet? |
Hi!
Does the library support rolling windows limits?
For example, if my limit is 60 per hour, there are 2 ways to go about it
Based on reading the code, I think only 1 is supported, but just want to make sure
The text was updated successfully, but these errors were encountered: