Quota policy - Multiple IP

Hello,

Quick question regarding Quota Policy

Developed an API Proxy which receives requests form different sources(with different IP addresses) For example lets say 5 sources.
i have configured quota limit of 3000 requests per minute, if 5 sources are sending 3000 requests/min at the same time
How does the quota policy behave? Does it throw an error on 3001 request irrespective of IP or does it process 3000 requests from each IP and then throws an error on 3001 request. Does Quota policy track requests based on IP or on number requests from different IP's.

Let me know if you need any info.

Thanks
Adithya

0 2 612
2 REPLIES 2

sidd-harth
Participant V

In Quota Policy we can define an Identifier as client.ip and it will allow 3000 calls per min for each unique IP address.

<Quota async="false" continueOnError="false" enabled="true" name="Quota-3">
   <DisplayName>Quota 3</DisplayName>
   <Identifier ref="client.ip"/> 
   <Allow count="3000"/>
   <Interval>1</Interval> 
   <TimeUnit>minute</TimeUnit>
   <Distributed>true</Distributed> 
   <Synchronous>true</Synchronous> 
</Quota>

But sometimes the IP address changes, so with each new IP address the source/client has 3000 calls.

Instead of IP address we can also make use of developer.id, developer.app.id or client.id as identifiers.

https://docs.apigee.com/api-platform/reference/policies/quota-policy#identifierelement

That's a concise answer!