[rate-limiting plugin] How can we add multiple limit_by
conditions for the same entity?
#7241
-
The rate limit plugin documentation isn't very clear in suggesting if it is possible to have multiple Example: Let's say that I want to rate limit incoming requests to service with
I know that this gives |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
There is only one The message
|
Beta Was this translation helpful? Give feedback.
There is only one
config
value admitted per plugin, and each of the fields of therate-limiting
plugin admit only one value (second
must be an integer,minute
must be an integer, and so on).The message
Multiple limits can be configured
means that it is possible to simultaneously use (for example) theminute
and thesecond
field. In your case, given that you wanted it to happen every 30 and 80 minutes, you could do this: