<?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: Oluwatosin Oghenewaire Thompson</title>
    <description>The latest articles on DEV Community by Oluwatosin Oghenewaire Thompson (@waire).</description>
    <link>https://dev.to/waire</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%2F3357823%2F43f39078-5e6c-437e-ae81-5aad65edeffc.jpeg</url>
      <title>DEV Community: Oluwatosin Oghenewaire Thompson</title>
      <link>https://dev.to/waire</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/waire"/>
    <language>en</language>
    <item>
      <title>Timeouts, retries, and the danger of making things worse</title>
      <dc:creator>Oluwatosin Oghenewaire Thompson</dc:creator>
      <pubDate>Thu, 22 Oct 2026 18:23:10 +0000</pubDate>
      <link>https://dev.to/waire/timeouts-retries-and-the-danger-of-making-things-worse-207g</link>
      <guid>https://dev.to/waire/timeouts-retries-and-the-danger-of-making-things-worse-207g</guid>
      <description>&lt;p&gt;A natural response to a timeout is to retry. Often, that is reasonable. But the safety of retrying depends on the operation.&lt;/p&gt;

&lt;p&gt;Suppose the original payment request took so long that your client timed out. You immediately submit the same request again.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgul9iru7fu7gs2nnd1jk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgul9iru7fu7gs2nnd1jk.png" alt="Double charge" width="800" height="354"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If the provider processes both requests, the customer could be charged twice.&lt;/p&gt;

&lt;p&gt;There is a second problem: the timeout might indicate that the provider is overloaded. Retrying aggressively adds more work to a service already struggling to keep up.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgxokqabnf39v628ocna2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgxokqabnf39v628ocna2.png" alt="Retry amplification" width="799" height="307"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Retries can improve success rates during transient failures, but they can also amplify overload.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Three mechanisms help address this:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6vkiwixzd1pwgspxfymr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6vkiwixzd1pwgspxfymr.png" alt="The three mechanism" width="798" height="189"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Timeouts
&lt;/h3&gt;

&lt;p&gt;Bound how long a request can consume resources while waiting for a dependency. A timeout limits waiting; it does not cancel a remote side effect that has already started.&lt;/p&gt;

&lt;h3&gt;
  
  
  Idempotency
&lt;/h3&gt;

&lt;p&gt;Make repeated requests with the same logical operation identifier safe. For example, a provider can recognise that two requests with the same idempotency key refer to one intended charge.&lt;/p&gt;

&lt;h3&gt;
  
  
  Backoff and jitter
&lt;/h3&gt;

&lt;p&gt;Wait progressively longer between retries and introduce randomness into the delays, reducing the chance that many clients retry simultaneously.&lt;/p&gt;

</description>
      <category>architecture</category>
      <category>backend</category>
      <category>softwareengineering</category>
    </item>
  </channel>
</rss>
