wso2 / product-apim

Welcome to the WSO2 API Manager source code! For info on working with the WSO2 API Manager repository and contributing code, click the link below.
http://wso2.github.io/
Apache License 2.0
845 stars 785 forks source link

[Devportal] Throttle APIs based on HTTP request headers exceeds the defined limit #6122

Closed keshiha96 closed 5 years ago

keshiha96 commented 5 years ago

When defining the Header condition under advanced policies in admin portal with request limit of 5 requests per minute, then testing through jmeter, it exceeds the defined limit of 5 requests per minute and accepts upto 47 requests within a minute. Screenshot from 2019-10-02 14-49-52 Screenshot from 2019-10-02 14-47-28

chamilaadhi commented 5 years ago

You won't be able to get 100% accuracy for High TPS scenarios with a low throttling limit. What you could do is apply a low Burst Control (Rate Limiting) limit for the subscription policy to work with this. that way we could reduce the exceeding requests