x-google-quota 1/min 1/hour/ 1/day 1/month

26 views
Skip to first unread message

Pasha Seliverstov

unread,
Apr 9, 2021, 5:53:40 PMApr 9
to api-gateway-users
Hi,

In this article https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#quota says that "The unit of the limit. Currently only "1/min/{project}" is supported".

Do you plan to extend the quota limit to 1/hour 1/day 1/month? If Yes, when do you think it can be available?

Best regards,
Pasha

Pasha Seliverstov

unread,
Apr 26, 2021, 9:22:42 PMApr 26
to api-gateway-users
"1/min/{project}" does it also imply that at some point it can be set per {user}?

Josh Einhorn

unread,
Apr 26, 2021, 10:36:31 PMApr 26
to Pasha Seliverstov, api-gateway-users
In theory other entities such as "user" and other window durations could be supported, but unfortunately there are no plans on the roadmap to support this. Can you elaborate a little on what your use case is, such as what you define as a "user"? Is it some identifier found in an auth token, or some other attribute of incoming requests?

--
You received this message because you are subscribed to the Google Groups "api-gateway-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to api-gateway-us...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/api-gateway-users/9fa00f04-7284-4611-ae3e-4509faf3614bn%40googlegroups.com.


--
Josh Einhorn | Software Engineer | joshe...@google.com | 1-215-837-1102

Rania Mohamed

unread,
Apr 27, 2021, 10:51:21 AMApr 27
to Pasha Seliverstov, api-gateway-users
Hi Pasha,

sorry for missing your note (Haven't seen it, must be moved to a folder, my mailbox has been a bit messy recently, sorry again :)), the quota most of the time is per project but you can for sure do a limit to the quota of the CloudEndpoint per user but it would be using the user defined metrics and in the end it would be on the level of project and per minute, so you define a user defined metrics and in it group it by the user (inquire it from the token) and then the quota will be defined using the user defined quota but again per minute per project.

I am attaching a link to an nice article talking about the different strategies you can implement for rate limiting 

I am not sure we should plan to have the quota per user, could be in future per environ or tenant but not sure that we will have a quota defined per user.
Maybe you can share a bit on the needs to have API quotas per user; I am sure it will help clarifying things :).

Sorry again for the so late response, I am really sorry :).

thanks,
-rania


--
Reply all
Reply to author
Forward
0 new messages