Following on from a similar topic raised here: https://www.googlecloudcommunity.com/gc/Apigee/How-to-validate-Quota-Policy-against-JWT
I’m considering a use-case in which we may want to apply quotas for individual users (either based on their access token, or more likely a unique user ID associated with their token(s)) to prevent abuse by individual authenticated users.
In this case applying a Quota Policy against the client_id wouldn’t be sufficiently granular as it would apply across all instances of a given developer app (for example the organisation’s Android app) and any quota exhaustion would affect all users using that developer app.
If we were to use an [Identifier](https://docs.apigee.com/api-platform/reference/policies/quota-policy#identifierelement) in a Quota Policy specific to a user, Apigee would need to maintain a significant number of individual counters for these quotas as have a large number of active users at peak. Are there any performance or cost implications we should be aware of when considering this?
For wider context, this is inspired by some of the approaches listed in this article used by Github, LinkedIn & Bitly to apply quotas for authenticated users: https://nordicapis.com/everything-you-need-to-know-about-api-rate-limiting/#bestpracticesforapiratelimiting