<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Context on cassiobotaro</title><link>https://cassiobotaro.dev/en/tags/context/</link><description>Recent content in Context on cassiobotaro</description><generator>Hugo</generator><language>en</language><lastBuildDate>Wed, 07 Oct 2026 20:14:59 -0300</lastBuildDate><atom:link href="https://cassiobotaro.dev/en/tags/context/index.xml" rel="self" type="application/rss+xml"/><item><title>Go Concurrency - Pipeline</title><link>https://cassiobotaro.dev/en/posts/go-concurrency-pipeline/</link><pubDate>Thu, 08 Oct 2026 00:00:00 +0000</pubDate><guid>https://cassiobotaro.dev/en/posts/go-concurrency-pipeline/</guid><description>&lt;video
 src="https://cassiobotaro.dev/videos/pipeline.mp4"
 title="Stages chained by channels, each one transforming what it receives" aria-label="Stages chained by channels, each one transforming what it receives"
 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-generators/" &gt;generator&lt;/a&gt; a goroutine wrote to the channel. In the &lt;a href="https://cassiobotaro.dev/en/posts/go-concurrency-worker/" &gt;worker&lt;/a&gt; it read from it.&lt;/p&gt;
&lt;p&gt;What if it does both? It reads from a channel, transforms the value and writes to another.&lt;/p&gt;
&lt;h2 id="what-a-pipeline-is"&gt;
 What a pipeline is
 &lt;a class="heading-link" href="#what-a-pipeline-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 pipeline is a chain of stages connected by channels. Each stage is a function that receives a channel, starts a goroutine to read from it and returns the channel where it writes the result.&lt;/p&gt;</description></item><item><title>Go Concurrency - Generators</title><link>https://cassiobotaro.dev/en/posts/go-concurrency-generators/</link><pubDate>Thu, 01 Oct 2026 00:00:00 +0000</pubDate><guid>https://cassiobotaro.dev/en/posts/go-concurrency-generators/</guid><description>&lt;video
 src="https://cassiobotaro.dev/videos/geradores.mp4"
 title="A goroutine producing values on a channel" aria-label="A goroutine producing values on a channel"
 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-hello-world/" &gt;hello world&lt;/a&gt; the channel carried a single message, from the goroutine to &lt;code&gt;main&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;But it&amp;rsquo;s almost never a single message. It&amp;rsquo;s the lines of a file, the pages of an API, the events of a queue. And this is where the first pattern of the series comes in.&lt;/p&gt;</description></item></channel></rss>