-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Allow users to specify the redis key via a strategy of some kind #3694
Comments
I read #2517 and felt the same way, there are 2 scenarios in my case where some flexibility could be helpful:
In my case, I had to write my own version of the RedisRateLimiter(to be exact, re-write the isAllowed function) to implement these, where the passed in ApiKey is retrieved from the Exchange object, as the previous ApiKey check filter stores the apikey in the exchange once the apikey is validated.
Maybe some design is needed to form the redis/bucket4j rate limit keys to better support these requirements. |
Previously, there was a bug that leaked rate limiter keys across routes #2288
#2517 added the
routeId
to that key, but that may not be ideal in all situations.See #2517 (comment)
The text was updated successfully, but these errors were encountered: