ApiaryActiveLive
Try: pause · settings · learn · wipe
← Community / Reading Room
UR
craft · 29 min read

Uncontrolled Retries: How \"Just Try Again\" Makes Failures Worse

An uncontrolled retry is a retry that lacks one or more basic controls: a limit on attempts or total time, a delay that grows after each failure, randomness…

A retry is a small bet that the next attempt will work. Placed without limits, by many clients at once, against a service that is already struggling, it becomes the thing that keeps the service down.

AI disclosure. This longread was drafted by AI (Claude, from an earlier Grok Bot draft) for Apiary. It has not been reviewed or verified by the founder. Sources were opened and read on 26 November 2026; provider documentation changes often, so dated limits are marked. Worked examples are hypothetical.

An uncontrolled retry is a retry that lacks one or more basic controls: a limit on attempts or total time, a delay that grows after each failure, randomness in that delay, a check that the error can succeed later, a check that the request is safe to repeat, or coordination with other layers that also retry. Any one missing control can cause harm. Together they can turn a ten-second blip into an hours-long outage.

The harms fall into a short list. Retries can duplicate side effects, creating a second charge or a second record when the first attempt actually succeeded. They add load at the worst moment, when a service is overloaded. They multiply when several layers each retry. They synchronize, so many clients hit the server in waves. They can sustain an outage after its cause is gone, a pattern researchers call a metastable failure. And they waste time, quota and money, most obviously when a client keeps retrying a refusal that no amount of waiting will fix.

The evidence for each comes from the HTTP standard, published engineering guidance from AWS, Google and Microsoft, two peer-reviewed systems papers, and AWS's own report on a major 2021 outage. Each section below describes one harm, the mechanism behind it, and the control that prevents it. The companion article biggie-retry-strategies covers how to build a good retry policy; this one is about what happens without one.

1. What "uncontrolled" means in practice

Microsoft's Azure Architecture Center describes the simplest form as an antipattern: a client that, "if the request doesn't succeed, ... retries immediately and keeps retrying forever." It notes that "this sort of behavior is often more subtle than this example, but the same principle applies" (Microsoft Learn, Retry Storm antipattern).

The subtle versions are more common than the infinite loop. A retry policy can be uncontrolled in any of these ways:

Missing controlWhat it allowsSection
Safety check (idempotency)Duplicate side effects2
Growing delay (backoff)Load added at full rate during overload3
Single retry layerMultiplication of attempts4
Randomness (jitter)Synchronized waves5
Attempt and budget limitsSelf-sustaining overload6, 7
Deadline awarenessWork no one is waiting for8
Error classificationRetrying refusals that cannot succeed9, 10

2. Harm one: doing the work twice

The first harm needs no overload at all. A request succeeds on the server, but the response is lost. The client sees a failure and retries. Microsoft's Retry pattern describes it: "a service might receive the request, process the request successfully, but fail to send a response. At that point, the retry logic might re-send the request, assuming that the first request wasn't received" (Microsoft Learn, Retry pattern). Its example of the cost is direct: retries "can result in the action being performed twice, which could be problematic if that action is something like charging a customer's credit card" (same source).

HTTP's standard anticipates this. RFC 9110 says that "a client SHOULD NOT automatically retry a request with a non-idempotent method unless it has some means to know that the request semantics are actually idempotent, regardless of the method, or some means to detect that the original request was never applied," that "a proxy MUST NOT automatically retry non-idempotent requests," and that "a client SHOULD NOT automatically retry a failed automatic retry" (RFC 9110 §9.2.2, June 2022). AWS takes the same line: "APIs with side effects aren't safe to retry unless they provide idempotency" (Brooker, AWS Builders' Library).

Duplicates also come from retries you did not write. Platform-level retries mean your code may receive the same work twice even when your own client behaves perfectly:

  • AWS Lambda asynchronous invocation. "If the function returns an error, by default Lambda attempts to run it two more times." AWS adds: "Even if your Event Function doesn't return an error, it's possible for it to receive the same event from Lambda multiple times because the queue itself is eventually consistent," and advises: "Ensure that your function code gracefully handles duplicate events" (AWS Lambda Developer Guide, asynchronous error handling).
  • Amazon SQS standard queues. If a server holding a copy of a message is unavailable when you delete it, "you might get that message copy again when you receive messages. Design your applications to be idempotent (they should not be affected adversely when processing the same message more than once)" (AWS SQS Developer Guide, at-least-once delivery).

Control: make repeated work harmless. Use idempotency keys for creates and payments, natural keys or upserts for writes, and check the target before retrying when neither is available. See biggie-idempotency-in-apis and request-failure-vs-unknown-execution-outcome.

3. Harm two: more load exactly when the service can least take it

Brooker's Builders' Library article frames the core tradeoff: "Retries are 'selfish.' In other words, when a client retries, it spends more of the server's time to get a higher chance of success. Where failures are rare or transient, that's not a problem." But "when failures are caused by overload, retries that increase load can make matters significantly worse. They can even delay recovery by keeping the load high long after the original issue is resolved" (Brooker, AWS Builders' Library). He compares retries to "a powerful medicine -- useful in the right dose, but can cause significant damage when used too much," and adds that "in distributed systems there's almost no way to coordinate between all of the clients to achieve the right number of retries" (same source).

Google's SRE book works through how this grows. In its scenario, a frontend retries failed backend calls, and the backend receives 10,000 queries per second, of which 100 fail from overload. The retries add load, so the backend "now receives 10,200 QPS—200 QPS of which are failing due to overload." Then "the volume of retries grows: 100 QPS of retries in the first second leads to 200 QPS, then to 300 QPS, and so on. Fewer and fewer requests are able to succeed on their first attempt, so less useful work is being performed as a fraction of requests to the backend." Eventually the backend "can melt down and crash under the sheer load of requests and retries," which "redistributes the requests it was receiving across the remaining backend tasks, in turn further overloading those tasks" (Ulrich, Site Reliability Engineering, ch. 22). The chapter says plainly that its numbers rest on "some simplifying assumptions," but that "the point remains that retries can destabilize a system," and that "both temporary load spikes and slow increases in usage can cause this effect" (same source).

The same chapter notes that this is not a theoretical risk: "This pattern has contributed to several cascading failures, whether the frontends and backends communicate via RPC messages, the 'frontend' is client JavaScript code issuing XmlHttpRequest calls to an endpoint and retries on failure, or the retries originate from an offline sync protocol that retries aggressively when it encounters a failure" (same source).

Control: exponential backoff, capped, so that each client slows down as failures continue; and a limit on how much of a client's traffic may be retries (section 7).

4. Harm three: retries multiply across layers

Most systems are stacks: a browser calls a frontend, which calls a service, which calls a database. If every layer retries independently, the attempts multiply.

Brooker's example: "a five-deep stack of service calls" ending in a database query, with "three retries at each layer." When the database starts failing under load and "each layer retries independently, the load on the database will increase 243x, making it unlikely to ever recover. This is because the retries at each layer multiply -- first three tries, then nine tries, and so on" (Brooker, AWS Builders' Library). Google's version: if "the backend, frontend, and JavaScript layers all issue 3 retries (4 attempts), then a single user action may create 64 attempts (4^3) on the database" (Ulrich, SRE ch. 22). Both figures are worked arithmetic, not measurements, and the two sources count slightly differently (attempts versus retries), but the shape is the same: the totals are products, not sums.

A peer-reviewed survey of real incidents reports a worse case. Bronson and colleagues describe "a geo-distributed system that added additional retries and failover destinations to improve its steady-state reliability," which "resulted in a worst-case work amplification of over 100×," and which "eventually fell victim to a metastable failure involving a backend service used by only a few percent of requests" despite "a sophisticated end-to-end priority system" (Bronson et al., HotOS '21). The detail matters: the retries were added to improve reliability.

The modern everyday version is an application retry loop wrapped around an SDK that already retries. OpenAI's documentation warns: "If you manage retries in your application, disable SDK retries or account for them in those limits so nested retry loops don't multiply requests" (OpenAI, Rate limits). The Anthropic SDKs retry "up to two times (three attempts in all)" by default (Anthropic, API errors); AWS SDKs default to three attempts (AWS SDK Retry behavior). A hand-written "try five times" around either is up to fifteen attempts per call, as documented on 26 November 2026.

Control: retry at one layer. AWS's practice is "to retry at a single point in the stack" (Brooker). Google's rule for deep stacks is that "requests should only be retried at the layer immediately above the layer that is rejecting them," which returns an "overloaded; don't retry" error otherwise (Forero Cuervo, SRE ch. 21).

5. Harm four: synchronized waves

When many clients fail at the same moment, as they do during a network blip, they also retry at the same moments unless something spreads them out. Stripe's engineering blog calls this the "thundering herd problem": even with backoff, clients' "retry schedules could be aligned closely enough that the retries will hammer the troubled server" (Leach, Stripe blog, 2017). Google's SRE book: "If retries aren't randomly distributed over the retry window, a small perturbation (e.g., a network blip) can cause retry ripples to schedule at the same time, which can then amplify themselves" (Ulrich, SRE ch. 22).

AWS's 2015 simulation shows the effect directly (an observed result from a simulation). With plain exponential backoff, "there are still clusters of calls. Instead of reducing the number of clients competing in every round, we've just introduced times when no client is competing." Adding random jitter removed the gaps, and "in the case with 100 contending clients, we've reduced our call count by more than half" (Brooker, AWS Architecture Blog, 2015, updated 2023). The no-jitter approach was "the clear loser," taking both more work and more time (same source).

Synchronization is not limited to retries after errors. Brooker's Builders' Library article reports that on Amazon EBS and AWS Lambda, clients sending requests "once per minute" could "line up and trigger their requests at the same time," such as "the first few seconds after midnight for daily jobs," and that jittering these periodic workloads let AWS do "the same amount of work with less server capacity" (Brooker, AWS Builders' Library). A cron job at exactly 00:00 on every server is the same problem in calendar form.

A network outage can also queue retries and release them together. In Bronson and colleagues' example, after a 10-second switch outage, "when connectivity is restored, all the packets lost during the outage are retransmitted, including requests and retries sent during the 10 s. This huge surge of requests will overload the database" (Bronson et al., HotOS '21).

Control: randomized backoff. Google's guidance is "always use randomized exponential backoff when scheduling retries" (Ulrich, SRE ch. 22).

6. Harm five: outages that outlive their cause

The most serious harm is the one that makes retries a research topic. In a 2021 paper, Bronson, Aghayev, Charapko and Zhu describe metastable failures: failures that keep going after the original trigger is removed, because something in the system sustains them. They write that metastable failures "manifest themselves as black swan events; they are outliers because nothing in the past points to their possibility, have a severe impact, and are much easier to explain in hindsight than to predict" (Bronson et al., "Metastable Failures in Distributed Systems," HotOS '21). And: "One of the most common failure-sustaining mechanisms is request retries. Retrying failed requests is widely used to mask transient issues. However, it also results in work amplification, which can lead to additional failures" (same source).

Their simplified example (a later paper describes the HotOS examples as "simplified versions of failures observed at Facebook" (Huang et al., OSDI '22)) is worth following closely. A database answers in under 100 ms below 300 queries per second, but "at higher loads, the latency becomes an order of magnitude worse." The web application sends one query per user request, plus a retry "if the first query does not return in 1 s." It runs happily at 280 QPS. Then a 10-second network outage releases a surge, latency rises past one second, and every query is retried. "So long as latency is high, client queries will continue at 560 QPS due to retries. This will prevent the database from recovering. The web application in this state has no goodput because every database query times out." The system "will remain there until the load is significantly reduced or the retry policy is changed" (same source).

The paper's key observation is the gap between apparent and real safety. The system looked fine at 280 QPS, below the 300 QPS capacity. But "once the load exceeds 150 QPS, however, the system enters a vulnerable state where a trigger can move it into the metastable state," because at 150 QPS the doubled traffic from retries already reaches capacity. "Recovery from the metastable state requires reducing the web application load to under 150 QPS or limiting retries to less than 20 QPS" (same source). The authors also note that "the system can recover from a much larger spike if the load is 151 QPS (near the hidden capacity) rather than 299 QPS (near the advertised capacity)," and that systems near their advertised capacity are "vulnerable to even very weak triggers" (same source).

7. How common is this? A study of public incident reports

A follow-up paper at OSDI 2022 by Huang and colleagues (Pennsylvania State University, University of New Hampshire and Twitter) set out to measure how often metastable failures occur "by scouring over publicly available incident reports from many organizations, ranging from hyperscalers to small companies" (Huang et al., "Metastable Failures in the Wild," OSDI '22). As observed results from that review:

  • They present "an in-depth study of 22 metastable failures from 11 different organizations."
  • "At least 4 out of 15 major outages in the last decade at Amazon Web Services were caused by metastable failures."
  • "By far, the most common sustaining effect is due to the retry policy, affecting more than 50% of the studied incidents."

(All from the same source.) The sample is incidents that organizations chose to describe publicly in enough detail to classify, so it says more about the pattern's existence and shape than about its true frequency across all systems.

The authors also reproduced the effect experimentally. They ran a replicated database at about 6,200 successful requests per second, with clients that used "a 3-second timeout" and retried "each operation up to 4 times after the timeout." A 10-second trigger that cut CPU by 78 percent caused a brief dip and full recovery. The same 10-second trigger at 80 percent, "2% additional reduction," did not recover: "Latency plateaus at approximately the client timeout of 3 seconds, and the total number of attempted requests peaks at around 20,000 RPS (a 3× increase over baseline), and goodput is reduced by ≈90% to 600 RPS. The client retry mechanism provides the feedback loop that prevents the system from resuming a normal state." Shortening the trigger from 10 seconds to 9 also allowed recovery (same source). Their summary: "even small changes to a trigger had a significant impact--a 2%-decrease in available CPU or a 1-second increase in duration separated successful recovery from a metastable failure."

The paper connects this to retry limits in a precise way: "a policy with at most two retries will not amplify the work more than three times, while the policy with no cap effectively leaves the system with no stable region" (same source). An uncapped retry policy does not merely make an overload worse; under this model, it removes the load level at which the system is guaranteed to recover.

It also documents a trap in incident response. After one incident, engineers "added significant logging to the error path of request execution to better understand the cause of the load spikes and retries." In the next incident, "the additional logging after a load spike and initial retries increased the cost of each retry, adding more load to the system and causing more requests to retry" (same source). Making the failure path more expensive feeds the loop.

8. Case study: AWS us-east-1, 7 December 2021

AWS's public summary of its 7 December 2021 event in the Northern Virginia (US-EAST-1) region is a clear primary-source example of retries sustaining an outage. The following is drawn from that report (AWS, "Summary of the AWS Service Event in the Northern Virginia (US-EAST-1) Region").

Trigger. "At 7:30 AM PST, an automated activity to scale capacity of one of the AWS services hosted in the main AWS network triggered an unexpected behavior from a large number of clients inside the internal network. This resulted in a large surge of connection activity that overwhelmed the networking devices between the internal network and the main AWS network."

Amplification. "These delays increased latency and errors for services communicating between these networks, resulting in even more connection attempts and retries. This led to persistent congestion and performance issues on the devices connecting the two networks."

Why backoff did not save it. "Our networking clients have well tested request back-off behaviors that are designed to allow our systems to recover from these sorts of congestion events, but, a latent issue prevented these clients from adequately backing off during this event. This code path has been in production for many years but the automated scaling activity triggered a previously unobserved behavior."

Secondary effects. The congestion "immediately impacted the availability of real-time monitoring data for our internal operations teams, which impaired their ability to find the source of congestion and resolve it." Effects reached customers through services that depended on the internal network: for example, EC2 APIs for launching instances "experienced increased error rates and latencies starting at 7:33 AM PST," and new instance launches recovered "by 2:40 PM PST" (same source).

Three lessons follow, labeled as editorial interpretation of the report. First, having backoff in the design is not the same as having it work: the failure was in a code path that had not been exercised under these conditions. Second, the retry feedback loop also damaged the tools operators needed to diagnose it, which matches Google's warning that "graphs of retry rates can be an indication of bad retry behavior, but may be confused as a symptom instead of a compounding cause" (Ulrich, SRE ch. 22). Third, the trigger was routine (a scaling activity), consistent with Bronson's point that the vulnerable state, not the trigger, is the real problem. Huang and colleagues include an AWS incident triggered by "a planned scale-up operation" in their study (Huang et al., OSDI '22), but this article does not assume which of their labeled cases corresponds to this report.

9. Harm six: work no one is waiting for

A retry that arrives after the caller has given up does nothing useful, yet the server still spends resources on it. Google's SRE book describes the general pattern: "A common theme in many cascading outages is that servers spend resources handling requests that will exceed their deadlines on the client. As a result, resources are spent while no progress is made: you don't get credit for late assignments with RPCs" (Ulrich, SRE ch. 22). It lists missed deadlines as a direct feeder of retries: an overloaded server's responses "arrive later, which may exceed any deadlines those clients set. The work the server did to respond is then wasted, and clients may retry the RPCs, leading to even more overload" (same source).

People retry too. The same chapter observes that "if a user's web search is slow because an RPC has been queued for 10 seconds, there's a good chance the user has given up and refreshed their browser, issuing another request: there's no point in responding to the first one" (same source). A browser refresh is a retry with no idempotency key and no backoff.

Microsoft makes the client-side version of the point: "Retrying indefinitely is ineffective because requests typically remain valid only for a limited time" (Microsoft Learn, Retry Storm antipattern).

Control: propagate deadlines through the stack and check the remaining time before each attempt; on the server, drop work whose deadline has passed. Google's chapter also suggests that changing queueing "from the standard first-in, first-out (FIFO) to last-in, first-out (LIFO)" or using controlled-delay algorithms "can reduce load by removing requests that are unlikely to be worth processing" (same source).

10. Harm seven: retrying refusals that cannot succeed

Some errors will never succeed on retry, and repeating them only spends time and capacity. Microsoft's example is the 400: "retrying the same request likely won't help because the server has already informed you that your request isn't valid" (Microsoft Learn, Retry Storm antipattern). Google: "Don't retry permanent errors or malformed requests in a client, because neither will ever succeed" (Ulrich, SRE ch. 22).

The costly modern case is a refusal that looks like a rate limit. Several AI providers return HTTP 429 both for temporary rate limits and for spending caps. As documented on 26 November 2026:

  • Anthropic: when an organization reaches its tier's monthly spend cap, "API usage pauses until 00:00 UTC on the first day of the next month, unless you request a higher limit sooner," requests return HTTP 429 with the same error type as a rate limit, "but the response has no retry-after header. Retrying, including the SDK's automatic retries, fails until access resumes" (Anthropic, Rate limits).
  • OpenAI: hard spend limits return 429 with organization_spend_limit_exceeded or project_spend_limit_exceeded (OpenAI, Spend limits), and "retrying billing, spend, or quota errors won't restore API access" (OpenAI, Error codes).

A retry loop that treats every 429 as "wait and try again" will spin until something else stops it. The companion article rate-limit-vs-spending-or-daily-limit covers how to tell these apart.

Control: classify errors by code, not just status, and treat quota, billing and validation errors as stop conditions.

11. Harm eight: spent quota and money

Retries consume the same limits as real work. OpenAI says so directly: "unsuccessful requests contribute to your per-minute limit, so continuously resending a request won't work" (OpenAI, Rate limits). A client that hammers a rate-limited endpoint keeps itself rate-limited.

Where providers charge per request or per token, a retry of a request that actually completed can also be billed twice, and a retry storm against a paid API is a bill as well as a load problem. This is an editorial inference from per-use pricing in general, not a documented figure from any provider; check how your provider bills failed and timed-out requests before assuming either way.

The cost can also be in people's time. Microsoft lists client-side symptoms of a retry storm as "very long response or processing times and telemetry that indicates repeated attempts to retry the connection" (Microsoft Learn, Retry Storm antipattern). A batch job that retried for hours against a cap is a batch job that did nothing for hours, and someone has to discover that.

12. Harm nine: hiding the real problem

Retries mask failures by design. That is useful for genuine blips and harmful when the failure is persistent. Stripe's error-handling guide notes, about connection errors, that "this error can mask others. It's possible that when the connection error resolves, some other error becomes apparent" (Stripe, Error handling). A loop that swallows every failure until the last attempt can also hide an early, specific error behind a generic final one.

Microsoft's logging guidance tries to balance this: "log early failures as informational entries and only the failure of the last of the retry attempts as an actual error," while still logging "all connectivity failures that cause a retry so that underlying problems ... can be identified" (Microsoft Learn, Retry pattern). It also warns that if a service "is frequently unavailable or busy, it's often because the service has exhausted its resources," and that retrying is not "an alternative to addressing scalability issues in a system" (same source).

13. A small-script example (hypothetical)

This example is hypothetical. The job, the API and the numbers are invented to illustrate the mechanisms above.

A nightly job publishes 50 pages through a content API that is briefly overloaded for about a minute. The job's loop catches any error and retries immediately, up to 20 times. Unknown to its author, the HTTP library it uses also retries internally up to 3 times (4 attempts) on timeouts.

  • Multiplication. Each of the job's 21 attempts can become 4 library attempts, so a single page can generate up to 84 requests (21 × 4). Across 50 pages, a one-minute slowdown can produce thousands of requests. (The earlier Grok draft gave "up to 80 attempts per page (20 × 4)"; counting the first attempt as well as 20 retries gives 21 × 4 = 84.)
  • Synchronization. With no delay, all the retries land inside the overload window, keeping it going.
  • Duplicates. Several first attempts actually succeeded on the server but timed out on the client. Their retries create second copies of those pages, because the job sends no idempotency key.
  • Masking. The job logs only "publish failed after retries" for pages that never went through, not the 503s and timeouts that explain why.

With one retry layer (library retries off), 3 attempts, full-jitter backoff, an idempotency key per page and a check of the page list before any retry after a timeout, the same minute of overload would cost a few seconds of delay and produce no duplicates. If the API's errors had included a stop signal, such as a quota code, the job would stop at once and say so.

14. Controls mapped to harms

An editorial synthesis of the sources above:

HarmControlSources
DuplicatesIdempotency keys, natural keys, check-before-retryRFC 9110; AWS; Microsoft; AWS Lambda and SQS docs
Load during overloadCapped exponential backoffAWS Builders' Library; Stripe blog
MultiplicationRetry at one layer; disable nested SDK retriesAWS; Google SRE; OpenAI
Synchronized wavesFull jitter on retries; jitter on scheduled jobsAWS blog and Builders' Library; Google SRE
Self-sustaining overloadPer-request cap, retry budget, retry throttling, load sheddingGoogle SRE ch. 21 and 22; Bronson; Huang; AWS SDK; gRPC
Late workDeadline propagation; server drops expired workGoogle SRE ch. 22
Unretryable refusalsClassify by error code; stop on quota, billing, validationMicrosoft; Anthropic; OpenAI
MaskingLog every attempt, alert on the lastMicrosoft; Stripe

Some controls deserve a sentence each on how they work, from their documentation:

  • Retry budgets. Google suggests "a server-wide retry budget. For example, only allow 60 retries per minute in a process, and if the retry budget is exceeded, don't retry; just fail the request," and says this "can be the difference between a capacity planning failure that leads to some dropped queries and a global cascading failure" (Ulrich, SRE ch. 22).
  • Retry quotas in SDKs. AWS SDK standard mode uses "a token bucket that deducts tokens for each retry"; "when the available tokens are exhausted, the SDK returns the error without retrying, so your application fails fast" (AWS SDK Retry behavior).
  • Retry throttling in gRPC. "If the token_count falls below half of maxTokens, retries are paused until the count recovers" (gRPC, Retry guide).
  • Server-side stop signals. Google's backends track how many attempts each incoming request has had and, when "histograms reveal a significant amount of retries," return "an 'overloaded; don't retry' error response instead of the standard 'task overloaded' error that triggers retries" (Forero Cuervo, SRE ch. 21).
  • Circuit breakers. Microsoft recommends the Circuit Breaker pattern as "designed specifically to help avoid retry storms" (Microsoft Learn, Retry Storm antipattern). Brooker adds a caution: circuit breakers "introduce modal behavior into systems that can be difficult to test, and can introduce significant addition time to recovery," which is why AWS prefers "limiting retries locally using a token bucket" (Brooker, AWS Builders' Library).

15. Spotting uncontrolled retries before they bite

Microsoft lists symptoms from both sides. From the client: long response times and telemetry showing repeated retry attempts. From the service: "several requests from one client within a short period of time or several requests from a single client while recovering from outages," a service that "might also struggle to recover after a failure," or "ongoing cascading failures right after a fault repair" (Microsoft Learn, Retry Storm antipattern).

Bronson and colleagues suggest watching a characteristic metric: "a metric that is affected by the trigger and that only returns to normal after the metastable failure resolves," such as "database latency or the fraction of requests that timeout" in their retry example (Bronson et al., HotOS '21). If that metric stays bad after the trigger is gone, a feedback loop may be holding it there.

Practical checks for a small team (editorial suggestion):

  1. Search your code for retry loops, and list the retry settings of every SDK and HTTP library you use. Count the layers.
  2. For each loop, confirm there is an attempt cap, a total-time cap, growing delay and jitter.
  3. Confirm which error codes trigger a retry and which stop the job.
  4. Confirm that every retried write is idempotent or checked first.
  5. Record attempt numbers in logs, so retries can be separated from first attempts on a graph.
  6. Look at what happens to your traffic in the minute after a dependency recovers. A sharp spike is a sign of queued, synchronized retries.

16. Getting out of a retry storm

When a retry loop is already sustaining an outage, the sources agree that the load must come down, not just the trigger be fixed. Google: "to dig out of this outage, you must dramatically reduce or eliminate the load on the frontends until the retries stop and the backends stabilize," and mitigation means you "must either fix the retry behavior (usually requiring a code push), reduce load significantly, or cut requests off entirely" (Ulrich, SRE ch. 22). Bronson's example likewise needs load cut below the hidden capacity or retries limited (Bronson et al., HotOS '21). Huang and colleagues list load shedding and, in one studied incident, adding capacity "after performing load shedding and fixing the trigger" (Huang et al., OSDI '22).

Bronson and colleagues also describe changing policy during overload: "we might disable failover and retries or set a retry budget, switch to LIFO scheduling ..., reduce internal queue sizes, enforce priorities during overload, shed load by rejecting a fraction of requests or clients, or even use the Circuit Breaker pattern to block all requests." They note the catch: "A major challenge with adaptive policies is coordination, as retry and failover decisions are made by each client" (Bronson et al., HotOS '21). That is the argument for building the controls in before the incident, when a code push is not needed to apply them.

17. A note on AI agents

Language-model agents add a new source of retries: the model itself. An agent that receives a tool error may decide to "try again," and nothing in the model guarantees a cap, a delay, jitter, or an idempotency key. From the system's point of view, a model deciding to resend is an application-level retry layer sitting on top of whatever the tool wrapper and the SDK already do.

The editorial suggestion follows from sections 2 and 4: put retry decisions in code beneath the tool, give the tool wrapper the single retry layer, and return to the model a clear, final result (succeeded, failed permanently, outcome unknown, stopped by quota) rather than a raw transient error that invites another attempt. Count model-initiated repeats of the same tool call and cap them like any other retry.

18. What the evidence does and does not show

It shows that retries are a common sustaining mechanism in real, publicly reported outages (more than half of the 22 incidents Huang and colleagues studied), that small changes in trigger size can separate recovery from a self-sustaining failure in a controlled experiment, that an uncapped retry policy leaves no guaranteed stable region in their model, and that at least one major cloud outage, AWS us-east-1 in December 2021, was prolonged by retries when a latent bug stopped backoff from working.

It does not show how often retries cause outages in systems in general; the incident study draws on reports organizations chose to publish. The 243x, 64x and 100x figures are worked examples or a single reported case, not population measurements. The AWS jitter result is a simulation of one contention scenario. And it does not show that retries are bad: every source here also says retries are valuable for genuinely transient faults. The problem is retries without controls.

Checklist

  1. Cap attempts and total time for every retry loop.
  2. Grow the delay after each failure, and add random jitter.
  3. Retry at one layer; turn off or account for SDK retries.
  4. Retry only errors that can succeed later; stop on quota, billing and validation errors.
  5. Make retried writes idempotent, or check the target first.
  6. Respect deadlines; do not retry work no one is waiting for.
  7. Add a retry budget or token bucket so retries cannot exceed a small share of traffic.
  8. Log every attempt with its number; alert on final failures.
  9. Test what your system does when a dependency fails and then recovers.

Related reading on Apiary

  • biggie-retry-strategies
  • biggie-circuit-breaker-pattern
  • guide-make-a-small-automation-retry-without-duplicating-the-work
  • biggie-idempotency-in-apis
  • rate-limit-vs-spending-or-daily-limit
  • request-failure-vs-unknown-execution-outcome

Sources

Last checked: 2026-11-26.

  1. Fielding, R., Nottingham, M., Reschke, J. (eds.). "RFC 9110: HTTP Semantics." IETF, June 2022. https://www.rfc-editor.org/rfc/rfc9110 - §9.2.2 rules on automatic retry of non-idempotent requests.
  2. Brooker, M. "Timeouts, retries, and backoff with jitter." Amazon Builders' Library. https://aws.amazon.com/builders-library/timeouts-retries-and-backoff-with-jitter/ - retries are selfish, 243x layering, single retry point, token bucket vs circuit breakers, periodic-job synchronization.
  3. Brooker, M. "Exponential Backoff And Jitter." AWS Architecture Blog, 4 March 2015, updated May 2023. https://aws.amazon.com/blogs/architecture/exponential-backoff-and-jitter/ - simulation showing clustering without jitter.
  4. Ulrich, M. "Addressing Cascading Failures," ch. 22 in Site Reliability Engineering (Google). https://sre.google/sre-book/addressing-cascading-failures/ - retry growth scenario, randomized backoff, retry budgets, 64-attempt example, deadlines, recovery.
  5. Forero Cuervo, A. "Handling Overload," ch. 21 in Site Reliability Engineering (Google). https://sre.google/sre-book/handling-overload/ - retry at the layer above, "overloaded; don't retry."
  6. Bronson, N., Aghayev, A., Charapko, A., Zhu, T. "Metastable Failures in Distributed Systems." HotOS '21, ACM, 2021. https://sigops.org/s/conferences/hotos/2021/papers/hotos21-s11-bronson.pdf - definition, retry example, vulnerable state, characteristic metric, policy changes during overload.
  7. Huang, L., Magnusson, M., Muralikrishna, A.B., Estyak, S., Isaacs, R., Aghayev, A., Zhu, T., Charapko, A. "Metastable Failures in the Wild." OSDI '22, USENIX, 2022. https://www.usenix.org/system/files/osdi22-huang-lexiang.pdf - 22 incidents from 11 organizations, retries in more than 50 percent, RSM experiment, retry caps and stable region, error-path logging.
  8. Amazon Web Services. "Summary of the AWS Service Event in the Northern Virginia (US-EAST-1) Region." https://aws.amazon.com/message/12721/ - December 2021 event: retries sustaining congestion, latent back-off issue.
  9. Microsoft. "Retry Storm antipattern." Azure Architecture Center. https://learn.microsoft.com/en-us/azure/architecture/antipatterns/retry-storm/ - definition, symptoms, prevention.
  10. Microsoft. "Retry pattern." Azure Architecture Center. https://learn.microsoft.com/en-us/azure/architecture/patterns/retry - lost-response duplicates, logging guidance, retries vs scaling.
  11. Amazon Web Services. "How Lambda handles errors and retries with asynchronous invocation." AWS Lambda Developer Guide. https://docs.aws.amazon.com/lambda/latest/dg/invocation-async-error-handling.html - two extra attempts, duplicate events.
  12. Amazon Web Services. "Amazon SQS at-least-once delivery." SQS Developer Guide. https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/standard-queues-at-least-once-delivery.html - duplicate message copies.
  13. Amazon Web Services. "Retry behavior." AWS SDKs and Tools Reference Guide. https://docs.aws.amazon.com/sdkref/latest/guide/feature-retry-behavior.html - default attempts, retry quota.
  14. gRPC Authors. "Retry" guide. https://grpc.io/docs/guides/retry/ - retry throttling.
  15. Leach, B. "Designing robust and predictable APIs with idempotency." Stripe blog, 22 February 2017. https://stripe.com/blog/idempotency - thundering herd.
  16. Stripe. "Error handling." https://docs.stripe.com/error-handling - connection errors can mask others.
  17. Anthropic. "Rate limits." https://platform.claude.com/docs/en/api/rate-limits - spend-cap 429 without retry-after; retries fail until access resumes.
  18. Anthropic. "Claude API errors." https://platform.claude.com/docs/en/api/errors - SDK default retries.
  19. OpenAI. "Rate limits." https://developers.openai.com/api/docs/guides/rate-limits - nested retry warning, failed requests count toward limits.
  20. OpenAI. "Spend limits." https://developers.openai.com/api/docs/guides/spend-limits - spend-limit 429 codes.
  21. OpenAI. "Error codes." https://developers.openai.com/api/docs/guides/error-codes - billing, spend and quota errors not retryable.
Frequently asked
What is Uncontrolled Retries: How \"Just Try Again\" Makes Failures Worse about?
An uncontrolled retry is a retry that lacks one or more basic controls: a limit on attempts or total time, a delay that grows after each failure, randomness…
What should you know about 1. What "uncontrolled" means in practice?
Microsoft's Azure Architecture Center describes the simplest form as an antipattern: a client that, "if the request doesn't succeed, ... retries immediately and keeps retrying forever." It notes that "this sort of behavior is often more subtle than this example, but the same principle applies" ( Microsoft Learn,…
What should you know about 2. Harm one: doing the work twice?
The first harm needs no overload at all. A request succeeds on the server, but the response is lost. The client sees a failure and retries. Microsoft's Retry pattern describes it: "a service might receive the request, process the request successfully, but fail to send a response. At that point, the retry logic might…
What should you know about 3. Harm two: more load exactly when the service can least take it?
Brooker's Builders' Library article frames the core tradeoff: "Retries are 'selfish.' In other words, when a client retries, it spends more of the server's time to get a higher chance of success. Where failures are rare or transient, that's not a problem." But "when failures are caused by overload, retries that…
What should you know about 4. Harm three: retries multiply across layers?
Most systems are stacks: a browser calls a frontend, which calls a service, which calls a database. If every layer retries independently, the attempts multiply.
References & sources
  1. Apiary Reading Room — Open, cited knowledge base — funded to keep bee & practical research free.
From the Apiary Reading Room. Opinion & editorial — not financial advice. We don't overclaim.
More from the Reading Room