Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Fine grained control #109

Open
dmarlow opened this issue Oct 11, 2017 · 2 comments
Open

Fine grained control #109

dmarlow opened this issue Oct 11, 2017 · 2 comments

Comments

@dmarlow
Copy link
Contributor

dmarlow commented Oct 11, 2017

I would like to be able to define more fine grained policies. For example, having a global of 20 requests per minute, while also being able to increase the limit for a given client or IP on a specific endpoint to 100 per minute. If I'm not mistaken, this doesn't exist (please correct me if I'm wrong). I can work on a PR unless someone is doing something similar.

@saurabha5
Copy link

I believe you can use the "rules" to specify such type of configuration.

https://github.com/stefanprodan/WebApiThrottle#ip-andor-client-key-custom-rate-limits

@dmarlow
Copy link
Contributor Author

dmarlow commented Apr 12, 2018

Let's say I have two endpoints (A and B) and two clients "Bob" and "Alice". How do I saw "Bob" can call endpoint "A" at a rate of 30 times per minute while "Alice" can only do 10 per minute. Doing all of this while having special, and custom rules for endpoint B?

By the looks of the documentation, I can only do: Bob has x rate over y period over ALL endpoints. Or, I can specify an endpoint rule for ALL clients.
What I can't do is: Bob has x rate over y period in z endpoint.

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

No branches or pull requests

2 participants