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

Dynamically assigning rate-limits #68

Closed
octate opened this issue Jul 10, 2018 · 1 comment
Closed

Dynamically assigning rate-limits #68

octate opened this issue Jul 10, 2018 · 1 comment

Comments

@octate
Copy link

octate commented Jul 10, 2018

Hi, I need some clarification on the following things:

  • Is it possible to create dynamic rate limits?
    eg: I would like to change the rate limit while the server is running.
  • Can I have different rate limits for different users?
    eg: I need to have different rate limits per username(basic-auth).
@didip
Copy link
Owner

didip commented Dec 17, 2020

  1. Unfortunately not, it is not possible to dynamically change rate limit on the fly.
  2. I think you can, just nest 2 tollbooth middlewares, one for user A and the other one for user B.

@didip didip closed this as completed Dec 17, 2020
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

2 participants