All Products
Search
Document Center

API Gateway:Dedicated instances

Last Updated:Oct 21, 2024

All cloud resources of a dedicated instance are exclusive to the instance. Therefore, dedicated instances are suitable for production environments.

API Gateway provides eight specifications for dedicated instances. The following table describes the detailed information of these specifications.

Instance type

Maximum inbound RPS

Maximum inbound connections

Maximum inbound CPS

Maximum size of outbound connection pool

Maximum inbound Internet bandwidth (Mbit/s)

Maximum outbound Internet bandwidth (Mbit/s)

SLA

api.s1.small

2500

50000

5000

1200

5120M

100M

99.95%

api.s1.medium

5000

100000

5000

2400

5120M

100M

99.95%

api.s2.large

10000

200000

5000

4800

5120M

200M

99.99%

api.s2.large.x2

20000

400000

10000

9600

5120M

200M

99.99%

api.s2.large.x3

30000

600000

10000

14400

5120M

400M

99.99%

api.s2.large.x4

40000

800000

20000

19200

5120M

400M

99.99%

api.s2.large.x5

50000

1000000

20000

24000

5120M

600M

99.99%

api.s2.large.x6

60000

1000000

20000

28800

5120M

600M

99.99%

Note
  • Data is transmitted serially in a long connection over HTTP. This means that the sender must wait for the previous request to be acknowledged before they can send the next request. You can use this rule to estimate the required maximum size of outbound connection pool of your instance. The following example shows how:

  • You purchased the api.s1.small specification, in which the maximum size of outbound connection pool is 1,200. Assume that the response time of the backend service for each request is 1 second, the maximum outbound requests per second (RPS) is 1,200. If the number of outbound requests exceeds 1,200, requests beyond the limit wait in a queue for a maximum of 500 milliseconds. If a request still cannot be sent within the period, a D504CO error is returned to the client.

  • For more information about the limits on using API Gateway, see Limits.

FAQ

1. How do I select a specification for a subscription instance?

API Gateway classifies instance specifications by requests per second (RPS). The queries per second (QPS) value is greater than the RPS value given the same network conditions. You can determine which specification to choose based on the QPS value.

2. What options are provided for scenarios featuring traffic spikes, such as sales promotions?

API Gateway provides two methods to deal with these situations: Method 1: subscription + instance upgrade or downgrade. For more information about instance upgrade and downgrade, see Change an instance specification. Method 2: subscription + pay-as-you-go + API group migration. For example, the average QPS is 2,000. QPS is expected to increase to 4,000 during a promotion that lasts for 24 hours. We recommend that you:

  • Purchase a subscription instance of the api.s1.small specification for day-to-day use.

  • Before the promotion, purchase a pay-as-you-go instance of the api.s1.medium specification. Three hours before the promotion starts, log on to the API Gateway console and migrate API groups from the subscription instance to the purchased pay-as-you-go instance. After the migration, make sure that access to the pay-as-you-go instance is normal. After the promotion, migrate the API groups back to the subscription instance. Make sure that access to the subscription instance is normal. Then, release the pay-as-you-go instance. This way, you need only to pay a small amount of fees for the pay-as-you-go instance.