Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How many parallel requests can one Google App Engine Python instance handle?

How many threads/requests can one Google App Engine Python instance handle in parallel? I'm using python27 runtime and threadsafe option is enabled (true). Are there any restictions or conditions which could limit parallelism?

For clarification: this isn't about Java or Python GAE SDK.

like image 384
Sami Lehtinen Avatar asked Feb 14 '12 17:02

Sami Lehtinen


People also ask

How many requests can handle a single cloud function?

Cloud Run has the capability to handle up to 80 concurrent requests with the same instance. At the opposite, Cloud Functions create as many instances as the concurrent requests.

How many types of instances does Google App Engine offer?

Google App Engine provides four possible runtime environments for applications, one for each of four programming languages: Java, Python, PHP, and Go. The environment you choose depends on the language and related technologies you want to use for developing the application.

How many App Engine instances does a project have?

Each Cloud Platform project can contain one App Engine application.

How long does it take my application to handle a given request Google Cloud Platform?

App Engine is optimized for applications with short-lived requests, typically those that take a few hundred milliseconds. An efficient app responds quickly for the majority of requests.


1 Answers

The amount of parallelism you get is highly dependent on the workload of your application. If your requests are CPU bound, you'll only serve one request at a time. On the other hand, if your requests are RPC bound, you could potentially serve 10's of concurrent requests. However, there are two relavent limits:
1. Instance size. The default 600MHz F1 instance can only serve so many concurrent requests before hitting the CPU limit, overloading your instance and causing a significant increase in latency.
2. There is a hard limit on concurrent requests. It's implementation dependent and subject to change, but at this moment on python27, it's 8.

like image 190
Anand Mistry Avatar answered Nov 15 '22 08:11

Anand Mistry