dream11 / kong-scalable-rate-limiter

Kong plugin for Rate Limiting at high throughputs.
https://dream11.github.io/kong-scalable-rate-limiter/
MIT License
40 stars 10 forks source link

Can it be counted only when the call is successful? #10

Open jianmaikj opened 3 years ago

jianmaikj commented 3 years ago

Summary

SUMMARY_GOES_HERE

chirag-manwani commented 3 years ago

Yes, this is a valid point. We could check for response status and increment the counter only if the status is 2XX. Is there any other case where the response is non 2XX but we still want to increment the request count? We could add a setting in the plugin schema as well which could be used to turn this behaviour on or off.

@jianmaikj