You can set traffic control for APIs, users, and APPs by minute, hour, or day; or sort out the specific users or APPs with designated traffic control policy. The traffic control policy is described below:
API traffic limit The call times within per time unit for the API bound by the policy shall not exceed the set value. The time unit may be minute, hour or day, for example, 5,000 times per minute. APP traffic limit The call times called by each APP within per time unit for an API bound to the policy shall not exceed the set value, for example, 50,000 times per hour. User traffic limit The call times called by each Alibaba Cloud account within per time unit shall not exceed the set value. An Alibaba Cloud account may have multiple APPs. The traffic limit for an Alibaba Cloud account refers to the limit on the total traffic of all APPs in this account. For example, the traffic may be 500,000 times per day.
In addition, you can set an additional threshold value as the traffic limit value （not allowed to exceed the value of API traffic limit）for the special APP or user. However, the basic APP traffic limit and user traffic limit settings in the traffic control policy are no longer applicable to the special APP or user.
An unchangable region shall be selected for the traffic control policy, and the traffic control policy can only be applied to APIs in the same region.
The traffic of a single IP address is restricted within 100 QPS regarding with the value of API traffic limit.
A traffic control policy can be bound to multiple APIs, with the limit value and special object settings appliable to each API separately. The lattest policy bound to the API will overwrite the previous one and take effect forthwith.
To add a special APP or user, you need to obtain the APP’s ID (AppID) or Alibaba Mail account.
On the API Gateway console, you can create, modify, delete, view, bind, and unbind a traffic control policy.