Updated on 2025-05-22 GMT+08:00

RES09-03 Avoiding Creating Too Much Traffic Pressure from Excessive Retries

Retries from the client work well for temporary faults caused by intermittent disconnections. However, for faults caused by a sudden traffic spike, a retry may worsen the situation, which needs to be avoided.

  • Risk level

    High

  • Key strategies

    When the client retries requests, you are advised to:

    • Add exponential backoff with jitter to avoid traffic pressure on the server. Exponential backoff increases the delay between retries exponentially. Jitter introduces randomness to the delay interval between two retries and avoids retry peaks at the same time.
    • Limit the maximum number of retries or retry interval to prevent traffic spikes caused by message backlog.