Hello everyone...
I have a specific requirement in terms of throttling API calls coming into apigee Edge public cloud.
On a tail note, its kind of sad that apigee doesn't support this feature which has been available in IBM Datapower, WSO2, Axway API Gateway, etc. for a very long time.
Does anyone have any suggestions to solve this problem?
I'm ok to have a complex custom implementation too as I'm desperately looking for this feature. A critical deployment is just pending for this logic to be implemented. Would appreciate any guidance on this.
Thanks.
Solved! Go to Solution.
You can indeed set Quota per second, please see docs here: https://docs.apigee.com/api-platform/reference/policies/quota-policy#timeunit
Perhaps they have been updated since your original post.
Also note, that using "second" means it cannot be distributed, so you'll have to account for the # of MPs you have. For example if you have 4 MPs, setting 3 TPS will yield an effective count of 12 TPS.
<Quota async="false" continueOnError="false" enabled="true" name="QU-BySecond"> <DisplayName>QU-BySecond</DisplayName> <Allow countRef="request.header.quota_allow" count="3"/> <Interval ref="request.header.quota_interval">1</Interval> <TimeUnit ref="request.header.quota_timeunit">second</TimeUnit> </Quota>