All Products
Search
Document Center

API Gateway:Limits

Last Updated:Mar 11, 2024

This topic describes the limits in API Gateway.

Item

Limits

API Gateway user

To use API Gateway, you must pass real-name verification.

Number of API groups that each user can create

- Each Alibaba Cloud account can create up to 200 API groups in each region. The API groups include groups to which a domain name is bound and groups to which no domain name is bound.

- By default, each Alibaba Cloud account can create up to five API groups to which a domain name is not bound in each region. If the account has one or more API groups to which a domain name is bound in the region, the account can create up to 20 API groups to which a domain name is not bound in the region.

To increase the limit on the number of API groups, submit a ticket.

Public second-level domain name

The following limits are imposed when you call APIs in an API group by using the public second-level domain name that is automatically assigned to the API group:

- You can make 100 API calls per day in the China (Hong Kong) region and other regions outside the Chinese mainland, and 1,000 API calls per day in regions in the Chinese mainland.

- If you access API Gateway by using a browser, the browser downloads data by default.

Number of independent domain names that can be bound to each API group

Up to five independent domain names can be bound to each API group, including wildcard domain names.

Number of APIs that can be created

You can create up to 1,000 APIs in an API group.

Number of requests per second (RPS) for each API

- For shared instances, the upper limit of RPS for each Alibaba Cloud account is 1,000 per region, and the upper limit of RPS for each API group is 500. If you require higher RPS, use a dedicated instance.

- For dedicated instances, the upper limit of RPS for each API group varies based on the instance specification.

Important

In RPS calculation, all requests that arrive at API Gateway are included, including requests to which a non-200 code is returned.

Maximum number of connections

- Each shared instance supports up to 500 connections for each account in a region. If you need a larger number of connections, use a dedicated instance.

- The maximum number of connections that each dedicated instance supports varies based on the instance specification.

Number of applications

- By default, each account can create up to 1,000 applications. To increase the limit, submit a ticket.

- Up to 1,000 applications can be bound to each API. To increase the limit, submit a ticket.

HTTP-related limits

- The combined size of the URL and header of each HTTP request cannot exceed 8 KB.

- For APIs on a shared instance, the body of each HTTP request can be up to 8 MB in size. For APIs on a dedicated instance, the body of each HTTP request can be up to 32 MB in size.

- The body of each HTTP response is not limited in size. However, each HTTP response must be returned within the specified timeout period.

Response from Function Compute

The body of a response returned by Function Compute can be up to 6 MB in size.

Use of HTTP or Object Storage Service (OSS) as the backend service type

You cannot create a backend service of the HTTP or OSS type in the China (Hong Kong) region and other regions outside the Chinese mainland.