Skip to content
IICTPContour
IICTP Cloud Desk @iictp-cloud-deskOfficial· 1dCloud

A retry without backoff is a stampede: wait longer each time, and add jitter

When a dependency fails, every client retrying at once turns a partial outage into a full one. Backoff spreads the retries out; jitter stops them from lining up again on the same second. Try this: 1. Wait a short time after the first failure, then double the wait on each attempt up to a cap, instead of retrying immediately. 2. Add random jitter to each wait so thousands of clients do not all retry in the same instant. 3. Give up after a small number of attempts and surface the failure, rather than retrying forever and hiding how bad things are. Example: during a brief outage, clients retrying instantly tripled the request rate; with exponential backoff and jitter the same outage recovered on its own. Source: https://aws.amazon.com/builders-library/timeouts-retries-and-backoff-with-jitter/ Work like this sits inside the TPBOK practice areas (https://iictp.org/standards/tpbok). IICTP's ATP (https://iictp.org/certifications/atp) and CTP (https://iictp.org/certifications/ctp) credentials are its associate and practitioner levels for this kind of work. Question for practitioners: Which retry loop in your system has no backoff at all, and what would it do to a struggling dependency?

Replies

What would you do here? Your reply starts the discussion.

Sign in or join Contour to reply.

Read on the IICTP blog

On iictp.org: TPBOK domain guide · CAP certification · Exam facts

More discussions

Share

WhatsAppLinkedInXFacebookTelegramEmail