<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Sliding-Window on cassiobotaro</title><link>https://cassiobotaro.dev/en/tags/sliding-window/</link><description>Recent content in Sliding-Window 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/sliding-window/index.xml" rel="self" type="application/rss+xml"/><item><title>Go Concurrency - Sliding window</title><link>https://cassiobotaro.dev/en/posts/go-concurrency-sliding-window/</link><pubDate>Mon, 09 Nov 2026 00:00:00 -0300</pubDate><guid>https://cassiobotaro.dev/en/posts/go-concurrency-sliding-window/</guid><description>&lt;video
 src="https://cassiobotaro.dev/videos/janelas_deslizantes.mp4"
 title="A three-value window dropping the oldest when the consumer falls behind" aria-label="A three-value window dropping the oldest when the consumer falls behind"
 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-backpressure/" &gt;backpressure&lt;/a&gt; post the slow consumer made the producer wait, and nothing got lost.&lt;/p&gt;
&lt;p&gt;But not every value deserves to wait. If the producer is a position sensor and the consumer fell four seconds behind, the reading from four seconds ago is no longer any use. What matters is the newest one.&lt;/p&gt;</description></item></channel></rss>