<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Broadcast on cassiobotaro</title><link>https://cassiobotaro.dev/en/tags/broadcast/</link><description>Recent content in Broadcast on cassiobotaro</description><generator>Hugo</generator><language>en</language><lastBuildDate>Thu, 15 Oct 2026 08:39:11 -0300</lastBuildDate><atom:link href="https://cassiobotaro.dev/en/tags/broadcast/index.xml" rel="self" type="application/rss+xml"/><item><title>Go Concurrency - Tee</title><link>https://cassiobotaro.dev/en/posts/go-concurrency-tee/</link><pubDate>Thu, 15 Oct 2026 00:00:00 +0000</pubDate><guid>https://cassiobotaro.dev/en/posts/go-concurrency-tee/</guid><description>&lt;video
 src="https://cassiobotaro.dev/videos/tee.mp4"
 title="Each value of a channel copied to every output" aria-label="Each value of a channel copied to every output"
 autoplay
 loop
 muted
 playsinline
 controls
 preload="metadata"
 style="width: 100%; height: auto;"&gt;
&lt;/video&gt;

&lt;p&gt;In the &lt;a href="https://cassiobotaro.dev/en/posts/go-concurrency-fan-out/" &gt;fan-out&lt;/a&gt; each value went to only one worker.&lt;/p&gt;
&lt;p&gt;But what if both need to see everything? One writes to the log and the other updates a metric, for example. Neither of them can miss a value.&lt;/p&gt;
&lt;h2 id="what-a-tee-is"&gt;
 What a tee is
 &lt;a class="heading-link" href="#what-a-tee-is"&gt;
 &lt;i class="fa-solid fa-link" aria-hidden="true" title="Link to heading"&gt;&lt;/i&gt;
 &lt;span class="sr-only"&gt;Link to heading&lt;/span&gt;
 &lt;/a&gt;
&lt;/h2&gt;
&lt;p&gt;A tee copies each value of an input channel to all the output channels. The name comes from the Unix &lt;code&gt;tee&lt;/code&gt; command, which duplicates whatever it receives.&lt;/p&gt;</description></item></channel></rss>