All Products
Document Center

Overview of rate limiting and degradation

Last Updated: Aug 05, 2019

The rate limiting and degradation feature of EDAS resolves slow system responses or crashes caused by the high pressure of the backend core services. This feature is generally used in high-traffic scenarios, for example, flash sales, shopping sprees, great promotions, and anti-empty box scams.

Rate limiting

This feature is used to control the traffic threshold or adjust the ratio. When a frontend website encounters high-traffic access, the traffic is controlled to prevent service unavailability and damage to the backend core system.By adjusting the traffic threshold, the maximum traffic volume of the system is controlled to ensure secure and stable system running.

Basic principles

After a rate limiting module code is configured for a service provider and a rate limiting policy is configured on EDAS, the service provider can use the rate limiting function.When a service consumer calls the service provider, all access requests are calculated by the rate limiting module. If the call volume of the service consumer exceeds the preset threshold in a specific period, the rate limiting policy is triggered.

Rate limiting rule


Degradation is to lower the called priority of non-core service providers that are timed out to ensure the availability of core service consumers.

Basic principles

After a degradation module code is configured for a service consumer and a degradation policy is configured on EDAS, the degradation function is enabled for service consumers.When the service consumer calls a service provider, if the response time of the service provider exceeds the preset threshold, the degradation policy is triggered.

Degrade rule