Parameter | Required | Description |
Enable or Not | Yes | A traffic throttling rule takes effect after it is enabled. |
Rate limiting configuration | Yes | Basic traffic throttling: Traffic is controlled based on the request quantity threshold. When the request quantity on this service exceeds the threshold within a set period, traffic throttling is triggered. Six time dimensions: second, minute, hour, day, month, and year are supported. Parameter-based traffic throttling: Traffic is controlled based on user request parameters and specified conditions. Filter conditions (optional): Only requests that meet certain filter conditions (IP address or path) are counted for traffic throttling. Traffic throttling condition: Traffic throttling is triggered when the monitored traffic throttling parameter reaches the specified threshold. It supports traffic control based on Header, Cookie, Path, IP address, and Query parameters, and allows you to set a fixed traffic throttling threshold or use global configurations for fine-grained configuration based on different traffic throttling parameter values. |
Count Policy | Yes | When the default Redis database is selected for storage, the counter is stored in the built-in Redis service node of the Cloud Native API Gateway instance to implement distributed traffic throttling, and the Redis service node can store a maximum of 3 million traffic throttling keys. When an external Redis database is selected for storage, you can configure the Redis access address (server address, connection password, and timeout period) to implement distributed traffic throttling on a larger scale. |
Traffic Throttling Processing Policy | Yes | Return directly: 429 is returned directly when traffic throttling is triggered. Custom return: When traffic throttling is triggered, HTTP response behavior is customized. The status code, response header, and response content are required. Request forwarding: After traffic throttling is triggered, you are redirected to the specified page and need to enter the request forwarding address. |
Request Queuing | No | Maximum request queuing period, ranging from 0 to 15 seconds. The value 0 indicates that a request is handled without latency. For values greater than 0, the gateway tries to handle a request every 1 second. If the request is not processed after the maximum queuing period reaches, the request will be throttled. |
Hide Traffic Throttling Response Headers | No | It is enabled by default. After traffic throttling response headers are hidden, the client will not receive response headers related to traffic throttling. |

{"1": 100,"2": 200}
Parameter | Required | Description |
Enable or Not | Yes | A traffic throttling rule takes effect after it is enabled. |
Rate limiting configuration | Yes | Basic traffic throttling: Traffic is controlled based on the request quantity threshold. When the request quantity on this service exceeds the threshold within a set period, traffic throttling is triggered. Six time dimensions: second, minute, hour, day, month, and year are supported. Parameter-based traffic throttling: Traffic is controlled based on user request parameters and specified conditions. Filter conditions (optional): Only requests that meet certain filter conditions (IP address or path) are counted for traffic throttling. Traffic throttling condition: Traffic throttling is triggered when the monitored traffic throttling parameter reaches the specified threshold. It supports traffic control based on Header, Cookie, Path, IP address, and Query parameters, and allows you to set a fixed traffic throttling threshold or use global configurations for fine-grained configuration based on different traffic throttling parameter values. |
Count Policy | Yes | When the default Redis database is selected for storage, the counter is stored in the built-in Redis service node of the Cloud Native API Gateway instance to implement distributed traffic throttling, and the Redis service node can store a maximum of 3 million traffic throttling keys. When an external Redis database is selected for storage, you can configure the Redis access address (server address, connection password, and timeout period) to implement distributed traffic throttling on a larger scale. |
Traffic Throttling Processing Policy | Yes | Return directly: 429 is returned directly when traffic throttling is triggered. Custom return: When traffic throttling is triggered, HTTP response behavior is customized. The status code, response header, and response content are required. Request forwarding: After traffic throttling is triggered, you are redirected to the specified page and need to enter the request forwarding address. |
Request Queuing | No | Maximum request queuing period, ranging from 0 to 15 seconds. The value 0 indicates that a request is handled without latency. For values greater than 0, the gateway tries to handle a request every 1 second. If the request is not processed after the maximum queuing period reaches, the request will be throttled. |
Hide Traffic Throttling Response Headers | No | It is enabled by default. After traffic throttling response headers are hidden, the client will not receive response headers related to traffic throttling. |
Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan