Closed gembin closed 4 years ago
Yes, it is possible to wrap different instances(You can configure each instance separately according to your needs, like max requests, etc) of this ratelimit middleware to different "scopes" of your app. More information can be found here: https://docs.rs/actix-web/3.0.0-beta.1/actix_web/struct.Scope.html
Hope this helps!
Closing this for now. Feel free to reopen if you have any questions.
Is it possible to control the rate limit at per API level?
For example:
GET /foo
100 max requests per minuteGET /bar
200 max requests per minute