<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Hedged-Request on cassiobotaro</title><link>https://cassiobotaro.dev/en/tags/hedged-request/</link><description>Recent content in Hedged-Request on cassiobotaro</description><generator>Hugo</generator><language>en</language><lastBuildDate>Thu, 29 Oct 2026 13:15:29 -0300</lastBuildDate><atom:link href="https://cassiobotaro.dev/en/tags/hedged-request/index.xml" rel="self" type="application/rss+xml"/><item><title>Go Concurrency - First to respond</title><link>https://cassiobotaro.dev/en/posts/go-concurrency-first-to-respond/</link><pubDate>Mon, 23 Nov 2026 00:00:00 -0300</pubDate><guid>https://cassiobotaro.dev/en/posts/go-concurrency-first-to-respond/</guid><description>&lt;video
 src="https://cassiobotaro.dev/videos/primeiro.mp4"
 title="A query sent to three replicas and the first answer winning" aria-label="A query sent to three replicas and the first answer winning"
 autoplay
 loop
 muted
 playsinline
 controls
 preload="metadata"
 style="width: 100%; height: auto;"&gt;
&lt;/video&gt;

&lt;p&gt;Three replicas of the same service, and the latency of each one varies on every call. If I query just one, every now and then I hit its bad moment.&lt;/p&gt;
&lt;p&gt;What if I send the same query to all three and keep the first answer?&lt;/p&gt;</description></item></channel></rss>