Cloud Functions limits and quotas

Cloud Functions has 26 published limits, for example Number of functions: The total number of functions that can be deployed per region: 1,000.

Quotas and limits of Cloud Functions, as Google Cloud Platform states it

LimitValueColumn (plan or default)Adjustable
Number of functions: The total number of functions that can be deployed per region

Source: docs.cloud.google.com · verified

1,000Limit (1st gen)No
Number of functions: The total number of functions that can be deployed per region

Source: docs.cloud.google.com · verified

1,000 minus the number of Cloud Run services deployed minusLimit (2nd gen)No
Max deployment size: The maximum size of a single function deployment

Source: docs.cloud.google.com · verified

100MB (compressed) for sources. 500MB (uncompressed) for sources plus modules.Limit (1st gen)No
Max uncompressed HTTP request size: Data sent to HTTP Functions in an HTTP request

Source: docs.cloud.google.com · verified

10MBLimit (1st gen)No
Max uncompressed HTTP request size: Data sent to HTTP Functions in an HTTP request

Source: docs.cloud.google.com · verified

32MBLimit (2nd gen)No
Max uncompressed HTTP response size: Data sent from HTTP functions in an HTTP response

Source: docs.cloud.google.com · verified

10MBLimit (1st gen)No
Max uncompressed HTTP response size: Data sent from HTTP functions in an HTTP response

Source: docs.cloud.google.com · verified

10MB for streaming responses. 32MB for non-streaming responses.Limit (2nd gen)No
Max event size for event-driven functions: Data sent in events to background functions

Source: docs.cloud.google.com · verified

10MBLimit (1st gen)No
Max event size for event-driven functions: Data sent in events to background functions

Source: docs.cloud.google.com · verified

512KB for Eventarc events. 10MB for legacy events.Limit (2nd gen)No
Max function memory: Amount of memory each function instance can use

Source: docs.cloud.google.com · verified

8GiBLimit (1st gen)No
Max function memory: Amount of memory each function instance can use

Source: docs.cloud.google.com · verified

32GiBLimit (2nd gen)No
Max function duration: The maximum amount of time a function can run before being forcibly terminated

Source: docs.cloud.google.com · verified

540 seconds secondsLimit (1st gen)No
Max function duration: The maximum amount of time a function can run before being forcibly terminated

Source: docs.cloud.google.com · verified

60 minutes for HTTP functions. 1800 seconds for scheduled/Task queue functions. 540 seconds for event-driven functions. minutesLimit (2nd gen)No
API calls (READ): Calls to describe or list functions via the Cloud Run functions API

Source: docs.cloud.google.com · verified

5000 per 100 seconds perLimit (1st gen)Not stated
API calls (READ): Calls to describe or list functions via the Cloud Run functions API

Source: docs.cloud.google.com · verified

1200 per 60 seconds perLimit (2nd gen)Not stated
API calls (WRITE): Calls to deploy or delete functions via the Cloud Run functions API

Source: docs.cloud.google.com · verified

80 per 100 seconds perLimit (1st gen)No
API calls (WRITE): Calls to deploy or delete functions via the Cloud Run functions API

Source: docs.cloud.google.com · verified

60 per 60 seconds perLimit (2nd gen)No
API calls (CALL): Calls to the "call" API

Source: docs.cloud.google.com · verified

16 per 100 seconds perLimit (1st gen)No
Max concurrent invocations: The maximum concurrent invocations of a single function Example: if handling each event takes 100 seconds, the invocation rate will be limited to 30 per second on average

Source: docs.cloud.google.com · verified

3,000LimitYes
Max concurrent invocations: The maximum concurrent invocations of a single function Example: if handling each event takes 100 seconds, the invocation rate will be limited to 30 per second on average

Source: docs.cloud.google.com · verified

1st gen onlyProduct versionYes
Max invocation rate: The maximum rate of events being handled by a single function Example: if handling an event takes 100ms, the invocation rate will be limited to 1000 per second even if only 100 requests, on average, are handled in parallel

Source: docs.cloud.google.com · verified

1000 per second perLimitNo
Max invocation rate: The maximum rate of events being handled by a single function Example: if handling an event takes 100ms, the invocation rate will be limited to 1000 per second even if only 100 requests, on average, are handled in parallel

Source: docs.cloud.google.com · verified

1st gen onlyProduct versionNo
Max concurrent event data size: The maximum total size of incoming events to concurrent invocations of a single function Example: if events are of size 1MB and processing them takes 10 seconds, the average rate will be 1 event per second, because the 11th event will not be processed until processing one of the first 10 events finishes

Source: docs.cloud.google.com · verified

10MBLimitNo
Max concurrent event data size: The maximum total size of incoming events to concurrent invocations of a single function Example: if events are of size 1MB and processing them takes 10 seconds, the average rate will be 1 event per second, because the 11th event will not be processed until processing one of the first 10 events finishes

Source: docs.cloud.google.com · verified

1st gen and 2nd genProduct versionNo
Max throughput of incoming events: The maximum throughput of incoming events to a single function Example: if events are of size 1MB, then the invocation rate can be maximum 10 per second, even if functions finish within 100ms

Source: docs.cloud.google.com · verified

10MB per secondLimitNo
Max throughput of incoming events: The maximum throughput of incoming events to a single function Example: if events are of size 1MB, then the invocation rate can be maximum 10 per second, even if functions finish within 100ms

Source: docs.cloud.google.com · verified

1st gen and 2nd genProduct versionNo
Compare