Limit number of requests sent per IP on Gooogle App Engine Flex?

938 views
Skip to first unread message

Sudhanshu Gaur

unread,
Sep 30, 2018, 7:14:38 AM9/30/18
to Google App Engine

I am trying to add limit reqeusts per IP on Google App Engine FLex NodeJs, I saw this rate-limiting-nginx documentation where Rate Limiting is applied on Nginx, but how can I use it inside my App Engine app.

Also is there any default setting or any other way for rate limiting on Google App Engine?

Amit (Google Cloud Support)

unread,
Oct 1, 2018, 4:22:22 PM10/1/18
to Google App Engine

Hello Sudhanshu


Currently Rate limiting only possible by the number of requests per minute per service consumer in Google Cloud Platform. Here the service consumer is a Google Cloud Platform project as identified by an API Key, Project ID or a project number. To enforce rate limiting, each server that belongs to a managed service needs to call the Service Control API services.allocateQuota method regularly. If the response of the services.allocateQuotamethod indicates that the usage is above the limit, the server should reject the incoming request with a 429 error. To see an example how to enforce rate limiting , you can check here.
Reply all
Reply to author
Forward
0 new messages