<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Kevin Pahlke</title>
    <description>The latest articles on DEV Community by Kevin Pahlke (@kevin_pahlke_7ba3df072134).</description>
    <link>https://dev.to/kevin_pahlke_7ba3df072134</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4282489%2Fb4872f57-bc43-41f8-b7aa-fc99ff2d5281.png</url>
      <title>DEV Community: Kevin Pahlke</title>
      <link>https://dev.to/kevin_pahlke_7ba3df072134</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kevin_pahlke_7ba3df072134"/>
    <language>en</language>
    <item>
      <title>Claude API retry storms explained with a CCDV-P practice question</title>
      <dc:creator>Kevin Pahlke</dc:creator>
      <pubDate>Fri, 04 Dec 2026 10:17:16 +0000</pubDate>
      <link>https://dev.to/kevin_pahlke_7ba3df072134/claude-api-retry-storms-explained-with-a-ccdv-p-practice-question-c9d</link>
      <guid>https://dev.to/kevin_pahlke_7ba3df072134/claude-api-retry-storms-explained-with-a-ccdv-p-practice-question-c9d</guid>
      <description>&lt;p&gt;Picture a support agent on a Friday evening. Its Claude API requests get &lt;code&gt;529&lt;/code&gt; responses for two minutes. The API recovers, but your workers keep sending three times their normal traffic for another fifteen. Incoming customer traffic is flat. Almost all of the extra work is retries.&lt;/p&gt;

&lt;p&gt;I use this fictional incident to teach a production reliability decision for the Claude Certified Developer Professional (CCDV-P) exam. If you see three retry loops in the trace, count how many attempts one customer request can turn into.&lt;/p&gt;

&lt;h2&gt;
  
  
  Count attempts at the API boundary
&lt;/h2&gt;

&lt;p&gt;Suppose your API client, agent runner and queue worker each make up to three total attempts when a retryable failure keeps propagating. An unlucky request can make up to 27 calls to the API. Each layer sees at most three attempts of its own. The service sees their product.&lt;/p&gt;

&lt;p&gt;Check actual attempt counts before making a change. Look at SDK defaults and worker redelivery, then group downstream calls by original request. If one SDK call already retries, an extra outer loop may multiply its work. A rising queue age after upstream recovery is a clue that old attempts are crowding out new work.&lt;/p&gt;

&lt;h2&gt;
  
  
  Decide where the retry belongs
&lt;/h2&gt;

&lt;p&gt;Assign one layer to own retries for the API call. Give it a bounded number of attempts, a deadline, and backoff with jitter so workers do not wake up together. Check the &lt;a href="https://platform.claude.com/docs/en/api/errors" rel="noopener noreferrer"&gt;Claude API error documentation&lt;/a&gt; for the failure you actually observed. A retry policy for temporary overload does not repair malformed input or a permission error.&lt;/p&gt;

&lt;p&gt;Queue redelivery still matters. When a job crashes halfway through a workflow, resume or deduplicate at the job boundary. A timeout after a write leaves its outcome uncertain. If the agent can issue a refund, use a stable operation ID and a payment operation that deduplicates it, or reconcile the original result before trying again. Repeating the language model request and repeating the refund are two different decisions.&lt;/p&gt;

&lt;h2&gt;
  
  
  A short practice question
&lt;/h2&gt;

&lt;p&gt;Your trace shows retries in the client, the agent runner and the worker. Success rates recover upstream after two minutes. Your old jobs still dominate the queue fifteen minutes later. Which change most directly reduces the load your own system creates during the next incident?&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A. Increase the timeout at all three layers.&lt;/li&gt;
&lt;li&gt;B. Give retries one owner, with a shared deadline and bounded attempts for the call.&lt;/li&gt;
&lt;li&gt;C. Add a dashboard for the total error count.&lt;/li&gt;
&lt;li&gt;D. Raise worker concurrency to drain jobs faster.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;B.&lt;/strong&gt; The trace tells you where the extra load comes from. Removing nested retry policies cuts the number of attempts one job can generate. A longer timeout holds work longer. A dashboard can make the issue visible. More workers can send the same retries upstream faster.&lt;/p&gt;

&lt;p&gt;You can use the same exercise to test your own architecture. Trace a single request through an overload response, then through a timeout after a side effect. For each trace, write down who can retry, the maximum number of attempts, and how the system can tell whether a write already happened.&lt;/p&gt;

&lt;p&gt;This article was prepared with AI assistance, including drafting and research. The API details were checked against Anthropic’s documentation.&lt;/p&gt;

</description>
      <category>claude</category>
      <category>certification</category>
      <category>api</category>
    </item>
  </channel>
</rss>
