Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Setting different Quota Policies for each consumer (DevApp)

Not applicable

Hi,

We are trying to implement consumer specific quota policies on our API products. We need to set different values of quota policies for different consumers.

For example, Consumer1 can only make 10,000 API hits per day, and Consumer2 can only make 25,000 hits per day.

One of the ways to achieve this is to set Custom Attributes on the DevApp, and them pull them dynamically into the quota policy, but this does not seem to be extensible because of the following:

There is also a requirement that the quota limit needs to be specific to the product that the consumers want to consume. For example:

Consumer1 -- > can make 10,000 hits on ProductA

Consumer1 -- > can make 5,000 hits on ProductB

Consumer2 -- > can make 25,000 hits on ProductA

Consumer2 -- > can make 1,000 hits on ProductB

So, the only way to achieve this would be to retain "Consumer.Product" attributes on the DevApp, but maintaining those could soon become an issue.

Also having the values on the DevApp as custom attributes makes this a not-so-elegant solution.

Is there a better way to handle the above use case on Apigee?

-Thanks

3 3 398
3 REPLIES 3