Overview of throttling and degradation

Updated at:

Enterprise Distributed Application Service (EDAS) uses Application High Availability Service (AHAS) to manage throttling and degradation for Spring Cloud, Dubbo, and High-speed Service Framework (HSF) applications. You can view throttling and degradation details and dynamically change rules in real time to ensure the availability of your applications.

What are throttling and degradation?

Throttling

Throttling is a feature that controls traffic by setting thresholds or adjusting traffic ratios. For example, when a frontend website experiences high traffic, you can use throttling to prevent the high traffic from overwhelming backend core systems and causing service unavailability. By adjusting traffic thresholds, throttling controls the maximum amount of traffic that passes through a system. This ensures the system runs securely and reliably.

To enable throttling for a service provider, you must configure the throttling module code on the provider and set a throttling policy in EDAS. When a consumer calls the provider's service, the throttling module processes all access requests. The throttling policy is triggered if the call volume from the consumer exceeds a preset threshold within a specific period.

image

Degradation

In EDAS, degradation lowers the call priority for non-core, downstream service providers that are timing out. This ensures that upstream core applications (service consumers) are not affected.

After you configure the degradation module code for a service consumer and a degradation policy in EDAS, the degradation feature is enabled for that consumer. When this consumer calls a service provider, the degradation policy is triggered if the provider's response time exceeds a preset threshold.

image

Usage notes

Before you use the throttling and degradation features of EDAS, note the following:

  • Make sure that you have activated AHAS. For more information, see Activate AHAS.

    Note

    AHAS is billed separately.

  • Newly deployed applications use the AHAS component for throttling and degradation by default.

  • If you use throttling and degradation for an existing application for the first time, AHAS is used by default.

  • Existing applications that already use throttling and degradation continue to use their original implementation.

Features

The throttling and degradation features include the following:

Feature

Description

References

Throttling rule

Monitors application traffic metrics, such as queries per second (QPS) or the number of threads. When a metric reaches the specified threshold, traffic is immediately blocked to prevent the application from being overwhelmed by sudden traffic spikes and to ensure its availability.

Configure throttling rules

Degradation rule

Monitors the response time or exception ratio of an application's downstream dependencies. When the value reaches the specified threshold, the priority of the downstream dependencies is immediately lowered. This protects the application and ensures its availability.

Configure degradation rules

Hot spot rule

After you configure a hot spot rule for an application, EDAS analyzes and identifies hot spot parameters, which are parameters that are frequently used during resource calls. Based on the rule, EDAS throttles resource calls that contain these hot spot parameters to protect system stability.

Configure hot spot rules

Operation log

Records operations performed on an application by the current Alibaba Cloud account and the Resource Access Management (RAM) users created by the account. The log includes details such as the resource name, operation content, operation time, and operator ID. This helps you track changes to applications and resources.

View throttling and degradation operation logs

Permission management

If a Resource Access Management (RAM) user needs to configure and push throttling and degradation rules for applications in AHAS, grant read and write permissions to the RAM user. This enables strict permission control and reduces the risk of online issues caused by incorrect configurations.

None