API Gateway Internal Limits

This topic describes various internal limits enforced by the API Gateway service, their default values, and whether you can change them.

API Gateway Resource Limits

This table describes internal limits enforced by the API Gateway service on API gateway resources.

Limit Description Default Limit Value Can you change it?
Number of API gateways Maximum number of active API gateways per tenant. 10 Yes, contact us.

API Deployment Resource Limits

This table describes internal limits enforced by the API Gateway service on API deployment resources.

Limit Description Default Limit Value Can you change it?
Number of API deployments Maximum number of active API deployments per gateway. 20 Yes, contact us.
Number of routes per API deployment Maximum number of routes defined inside the API deployment specification. 50 Yes, contact us.
Path prefix length Maximum length of path for API deployment. 2,000 characters No
Route pattern length Maximum length of path for a route in an API deployment. 2,000 characters No
API deployment specification Size Maximum length of json encoded API deployment specification in bytes. 1,000,000 bytes No
Stock Response - header length Maximum length of UTF-8 encoded json of stock response headers. 4096 bytes No
Stock Response - header name length Maximum length of a stock response header name. 1024 bytes No
Stock Response - header value length Maximum length of a stock response header value. 4096 bytes No
Stock Response - number of headers Maximum number of stock response headers. 50 No
Stock Response - body size Maximum body size in UTF-8 bytes. 4096 bytes No
CORS Policy - number of headers Maximum number of CORS allowed/exposed headers. 50 No
CORS Policy - number of allowed methods Maximum number of CORS allowed methods. 50 No

HTTP Back End Resource Limits

This table describes internal limits enforced by the API Gateway service on HTTP back ends.

Limit Description Default Limit Value Can you change it?
Connect timeout Maximum configurable HTTP back end connect timeout in seconds. 60.0 seconds Yes, by changing the timeout setting in the API deployment specification to between 1.0 and 75.0 seconds (see Adding an HTTP or HTTPS URL as an API Gateway Back End).
Read timeout Maximum configurable HTTP back end read timeout in seconds. 10.0 seconds Yes, by changing the timeout setting in the API deployment specification to between 1.0 and 300.0 seconds (see Adding an HTTP or HTTPS URL as an API Gateway Back End).
Send timeout Maximum configurable HTTP back end send timeout in seconds. 10.0 seconds Yes, by changing the timeout setting in the API deployment specification to between 1.0 and 300.0 seconds (see Adding an HTTP or HTTPS URL as an API Gateway Back End).

API Gateway Invocation Limits

This table describes internal limits enforced by the API Gateway service on API gateway invocations.

Limit Description Default Limit Value Can you change it?
Simultaneous connections per IP address Maximum number of simultaneous HTTPS connections from a single IP address to an API gateway. 1000 No
Request body size Maximum request body size. 6 MB No
Request header read timeout Time between reads of request header bytes. 15 seconds No
Request body read timeout Time between reads of request body bytes. 15 seconds No
Response body read timeout Time between sends of response body bytes. 15 seconds No
Maximum header size Maximum length of header (including method, URI, and headers). 8 KB No
Function back end latency Maximum duration of a full request to a function back end. 300 seconds No
HTTP back end latency Maximum duration of a full request to an HTTP back end. 300 seconds No