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

Providing multiple limits for same rule #10

Open
rahul9269 opened this issue Aug 7, 2019 · 2 comments
Open

Providing multiple limits for same rule #10

rahul9269 opened this issue Aug 7, 2019 · 2 comments

Comments

@rahul9269
Copy link

Hey,
Is there a way to provide multiple limits for the same rule.
I have a requirment when my application needs to call an api and the api rules are as follows.

5 request in 1 second
75 requests in 1 minutes
750 requests in 1 hour.

Can this be achieved as of today or should this be a feature request.

@regevbr
Copy link
Contributor

regevbr commented Aug 7, 2019

This will be a really big feature request, as it will require a whole different way of handling the limits using sliding windows mechanisms. Maybe it will even require a new library all together. @energizer91 thoughts?

@energizer91
Copy link
Owner

Hi! Well, yes, unfortunately, there's a different way of balancing the queue. The only way of doing that with that package is to set hour rule.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants