Multiple types of rate limits on the same endpoint #14748
Unanswered
viliusgudziunas
asked this question in
Help
Replies: 1 comment
-
Yes. Today, Kong by design only allows a single instance of a given plugin to execute on any given request. To address your case, there is a workaround such as duplicating and re-implementing entire plugin definitions as custom plugins to avoid “de-duping”. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to configure two different types of rate limits on the same endpoint:
How can I configure such rate limits with Kong?
Currently, I have a
serviceand this endpoint is arouteunder that service.I've tried adding
rate-limitingplugin withlimit_by: consumeron the route and anotherrate-limitingplugin withlimit_by: pathon the service. After testing, it looks like only the route rate limits take effect. If I disable therate-limitingplugin on the route, then the service plugin starts to work.I've also tried adding 2
rate-limitingplugins on the route and that leads to validation failures, because the plugins need to be unique.All this leads me to believe that I am only able to configure a single type of rate limits on the same endpoint.
Maybe there is another way and I'm just not finding it?
Beta Was this translation helpful? Give feedback.
All reactions