You can use the instance concurrency feature and provisioned instances to ensure that a function can normally respond to a large number of concurrent function invocations.
Background
For example, if you configure an Object Storage Service (OSS) trigger for a function in Function Compute, the function is triggered when objects are uploaded to OSS. Normal response of the function must be guaranteed when a large number of objects are uploaded to OSS at the same time.
Solutions
To ensure that the function can normally respond, you must increase the number of requests that Function Compute can concurrently process. Configure the following items:
Enable the instance concurrency feature. For more information, see Instance concurrency for a function.
Configure provisioned instances. For more information, see Configure auto scaling rules. By default, an Alibaba Cloud account can concurrently run at most 100 instances in a region. The actual limit in Quota Center prevails. If you want to increase the limit, go to the Quota Center to apply for a quota increase. The following table shows the default instance scaling speeds in different regions.
Region
Limits on burstable instances
Limits on instance growth rate
China (Hangzhou), China (Shanghai), China (Beijing), China (Zhangjiakou), and China (Shenzhen)
300
300 per minute
Other
100
100 per minute