<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Timeouts on IT Comparison</title><link>https://comparison.metacog.co.kr/tags/timeouts/</link><description>Recent content in Timeouts on IT Comparison</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Sun, 06 Sep 2026 10:07:39 +0900</lastBuildDate><atom:link href="https://comparison.metacog.co.kr/tags/timeouts/index.xml" rel="self" type="application/rss+xml"/><item><title>Short vs Long Timeouts: Failing Fast vs Tolerating Slowness</title><link>https://comparison.metacog.co.kr/posts/2026-09-06-short-vs-long-timeouts-failing-fast-vs-tolerating-slowness/</link><pubDate>Sun, 06 Sep 2026 10:07:39 +0900</pubDate><guid>https://comparison.metacog.co.kr/posts/2026-09-06-short-vs-long-timeouts-failing-fast-vs-tolerating-slowness/</guid><description>&lt;h2 id="overview"&gt;Overview&lt;/h2&gt;
&lt;p&gt;Timeouts define how long a caller waits for a response before giving up, and the duration you pick trades off resource protection against tolerance for slow-but-valid work. &lt;strong class="kw"&gt;Short timeouts&lt;/strong&gt; fail fast and protect callers from cascading slowness, while &lt;strong class="kw"&gt;long timeouts&lt;/strong&gt; give operations more room to complete under load or over slow links at the cost of holding resources longer.&lt;/p&gt;
&lt;h2 id="comparison-diagram"&gt;Comparison Diagram&lt;/h2&gt;
&lt;div class="compare-diagram"&gt;
&lt;svg viewBox="0 0 640 360" xmlns="http://www.w3.org/2000/svg"&gt;&lt;text x="160" y="40" text-anchor="middle" font-size="20" style="fill:var(--primary)"&gt;Short Timeout&lt;/text&gt;&lt;text x="480" y="40" text-anchor="middle" font-size="20" style="fill:var(--primary)"&gt;Long Timeout&lt;/text&gt;&lt;line x1="320" y1="20" x2="320" y2="340" style="stroke:var(--border)" stroke-width="1" stroke-dasharray="4,4"/&gt;&lt;circle cx="60" cy="100" r="14" style="fill:var(--compare-a-soft);stroke:var(--compare-a)" stroke-width="1.5"/&gt;&lt;text x="60" y="104" text-anchor="middle" font-size="11" style="fill:var(--content)"&gt;Call&lt;/text&gt;&lt;line x1="74" y1="100" x2="200" y2="100" style="stroke:var(--compare-a)" stroke-width="2" marker-end="url(#arrowA)"/&gt;&lt;rect x="200" y="85" width="60" height="30" rx="4" style="fill:var(--compare-a-soft);stroke:var(--compare-a)" stroke-width="1.5"/&gt;&lt;text x="230" y="104" text-anchor="middle" font-size="11" style="fill:var(--content)"&gt;Server&lt;/text&gt;&lt;line x1="70" y1="140" x2="200" y2="140" style="stroke:var(--compare-a)" stroke-width="3"/&gt;&lt;text x="135" y="160" text-anchor="middle" font-size="12" style="fill:var(--secondary)"&gt;wait window: 200ms&lt;/text&gt;&lt;path d="M200 140 L188 134 L188 146 Z" style="fill:var(--compare-a)"/&gt;&lt;rect x="210" y="180" width="90" height="36" rx="4" style="fill:var(--compare-a-soft);stroke:var(--compare-a)" stroke-width="1.5"/&gt;&lt;text x="255" y="202" text-anchor="middle" font-size="11" style="fill:var(--content)"&gt;Timeout error&lt;/text&gt;&lt;text x="255" y="235" text-anchor="middle" font-size="11" style="fill:var(--secondary)"&gt;fails fast, retries quickly&lt;/text&gt;&lt;circle cx="380" cy="100" r="14" style="fill:var(--compare-b-soft);stroke:var(--compare-b)" stroke-width="1.5"/&gt;&lt;text x="380" y="104" text-anchor="middle" font-size="11" style="fill:var(--content)"&gt;Call&lt;/text&gt;&lt;line x1="394" y1="100" x2="520" y2="100" style="stroke:var(--compare-b)" stroke-width="2" marker-end="url(#arrowB)"/&gt;&lt;rect x="520" y="85" width="60" height="30" rx="4" style="fill:var(--compare-b-soft);stroke:var(--compare-b)" stroke-width="1.5"/&gt;&lt;text x="550" y="104" text-anchor="middle" font-size="11" style="fill:var(--content)"&gt;Server&lt;/text&gt;&lt;line x1="390" y1="140" x2="560" y2="140" style="stroke:var(--compare-b)" stroke-width="3"/&gt;&lt;text x="475" y="160" text-anchor="middle" font-size="12" style="fill:var(--secondary)"&gt;wait window: 30s&lt;/text&gt;&lt;rect x="495" y="180" width="90" height="36" rx="4" style="fill:var(--compare-b-soft);stroke:var(--compare-b)" stroke-width="1.5"/&gt;&lt;text x="540" y="202" text-anchor="middle" font-size="11" style="fill:var(--content)"&gt;Response arrives&lt;/text&gt;&lt;text x="540" y="235" text-anchor="middle" font-size="11" style="fill:var(--secondary)"&gt;tolerates slow work&lt;/text&gt;&lt;line x1="40" y1="270" x2="280" y2="270" style="stroke:var(--border)" stroke-width="1"/&gt;&lt;text x="160" y="290" text-anchor="middle" font-size="11" style="fill:var(--content)"&gt;frees threads/connections sooner&lt;/text&gt;&lt;text x="160" y="308" text-anchor="middle" font-size="11" style="fill:var(--content)"&gt;risk: false failures under load&lt;/text&gt;&lt;line x1="360" y1="270" x2="600" y2="270" style="stroke:var(--border)" stroke-width="1"/&gt;&lt;text x="480" y="290" text-anchor="middle" font-size="11" style="fill:var(--content)"&gt;holds resources longer per call&lt;/text&gt;&lt;text x="480" y="308" text-anchor="middle" font-size="11" style="fill:var(--content)"&gt;risk: cascading pileup/exhaustion&lt;/text&gt;&lt;defs&gt;&lt;marker id="arrowA" markerWidth="8" markerHeight="8" refX="6" refY="4" orient="auto"&gt;&lt;path d="M0,0 L8,4 L0,8 Z" style="fill:var(--compare-a)"/&gt;&lt;/marker&gt;&lt;marker id="arrowB" markerWidth="8" markerHeight="8" refX="6" refY="4" orient="auto"&gt;&lt;path d="M0,0 L8,4 L0,8 Z" style="fill:var(--compare-b)"/&gt;&lt;/marker&gt;&lt;/defs&gt;&lt;/svg&gt;
&lt;/div&gt;
&lt;h2 id="comparison-table"&gt;Comparison Table&lt;/h2&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Aspect&lt;/th&gt;
&lt;th&gt;Short Timeout&lt;/th&gt;
&lt;th&gt;Long Timeout&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Request initiation&lt;/td&gt;
&lt;td&gt;Caller sets an aggressive deadline immediately on send&lt;/td&gt;
&lt;td&gt;Caller allows a generous window before send returns control&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Behavior under normal latency&lt;/td&gt;
&lt;td&gt;Succeeds well within budget, negligible overhead&lt;/td&gt;
&lt;td&gt;Succeeds with unused slack, no functional difference&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Behavior under slow dependency&lt;/td&gt;
&lt;td&gt;Aborts before slow-but-valid work finishes, causing false failures&lt;/td&gt;
&lt;td&gt;Waits out transient slowness, letting valid work complete&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Resource holding&lt;/td&gt;
&lt;td&gt;Frees threads, sockets, and connection pool slots quickly&lt;/td&gt;
&lt;td&gt;Ties up threads, sockets, and pool slots for the full wait&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Failure propagation&lt;/td&gt;
&lt;td&gt;Fails fast, enabling quick retry or fallback logic&lt;/td&gt;
&lt;td&gt;Delays failure detection, slowing retries and fallback triggers&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;System behavior under overload&lt;/td&gt;
&lt;td&gt;Sheds load quickly, protecting upstream and downstream services&lt;/td&gt;
&lt;td&gt;Risks thread/connection exhaustion and cascading backpressure&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Retry and circuit breaker interaction&lt;/td&gt;
&lt;td&gt;Pairs well with fast retries and quick breaker tripping&lt;/td&gt;
&lt;td&gt;Delays breaker tripping, masking degradation until timeout expires&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Tuning basis&lt;/td&gt;
&lt;td&gt;Set near p99 latency of a healthy, fast dependency&lt;/td&gt;
&lt;td&gt;Set to cover legitimate worst-case work like batch jobs or large payloads&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h2 id="key-differences"&gt;Key Differences&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;A &lt;strong class="kw"&gt;short timeout&lt;/strong&gt; favors quick failure detection over completing genuinely slow requests&lt;/li&gt;
&lt;li&gt;A &lt;strong class="kw"&gt;long timeout&lt;/strong&gt; risks &lt;strong class="kw"&gt;resource exhaustion&lt;/strong&gt; when many calls stall simultaneously&lt;/li&gt;
&lt;li&gt;Short timeouts pair naturally with &lt;strong class="kw"&gt;fast retries&lt;/strong&gt;, while long timeouts delay circuit breaker activation&lt;/li&gt;
&lt;li&gt;Choosing either wrong direction turns normal &lt;strong class="kw"&gt;latency variance&lt;/strong&gt; into either false failures or cascading pileups&lt;/li&gt;
&lt;li&gt;The right value depends on the dependency&amp;rsquo;s actual &lt;strong class="kw"&gt;p99 latency&lt;/strong&gt;, not a guessed constant&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="when-to-use-each"&gt;When to Use Each&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Short Timeout&lt;/strong&gt;&lt;/p&gt;</description></item></channel></rss>