[rate-limiting] should not increment on 5xx responses #7204
Replies: 5 comments
-
I don't see how 160 is related to this? You just want providers to chose a list of status codes (or other) on which not to increment? That would be related to the rate-limiting plugin itself. |
Beta Was this translation helpful? Give feedback.
-
thinking is: if we do #505, then plugins could be configured per http method, path, etc ... why not response codes as well! |
Beta Was this translation helpful? Give feedback.
-
The thing is that it makes sense for some plugins like this one, absolutely not for others. It might be allowing too much flexibility at the cost of usability. |
Beta Was this translation helpful? Give feedback.
-
yep, which is why its a suggestion ... both approaches are valid (as a plugin specific config or as part of #505) so if we do decide to response level config in #505, means no need to do plugin level config for this here ... |
Beta Was this translation helpful? Give feedback.
-
Currently the rate-limiting increments the counters before it is being proxied to the upstream service in The schema should support this additional property: |
Beta Was this translation helpful? Give feedback.
-
currently rate limiting is blanket across all requests, there should be some sort of method to customize it? perhaps #160 is the answer?
Beta Was this translation helpful? Give feedback.
All reactions