<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>networking on kyle.cascade.family</title>
		<link>https://kyle.cascade.family/tags/networking/</link>
		<description>Recent content in networking on kyle.cascade.family</description>
		<generator>Hugo</generator>
		<language>en-us</language>
		
		
		
		
			<lastBuildDate>Sat, 28 Nov 2026 00:00:00 +0000</lastBuildDate>
		
			<atom:link href="https://kyle.cascade.family/tags/networking/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Solving the 1 Billion Concurrent Connections (C1B) Problem On My Laptop</title>
				<link>https://kyle.cascade.family/posts/solving-the-1-billion-concurrent-connections-c1b-problem-on-my-laptop/</link>
				<pubDate>Sat, 28 Nov 2026 00:00:00 +0000</pubDate>
				<guid>https://kyle.cascade.family/posts/solving-the-1-billion-concurrent-connections-c1b-problem-on-my-laptop/</guid>
				<description>&lt;h2 id=&#34;intro&#34;&gt;Intro&lt;/h2&gt;&#xA;&lt;p&gt;The other day I was scraping the National Weather Service API so that I could have emergency weather alerts on the e-ink dashboard on my wall, you know, as you do.&lt;/p&gt;&#xA;&lt;p&gt;But I got to thinking, how much additional load am I adding to this free service?&#xA;Not a lot of course, but why do I have to poll anyway?&lt;/p&gt;&#xA;&lt;div class=&#34;admonition admonition-aside&#34; style=&#34;--admonition-color: #78909c;&#34;&gt;&#xA;  &lt;div class=&#34;admonition-title&#34;&gt;&#xA;    &lt;svg class=&#34;admonition-icon&#34; viewBox=&#34;0 0 24 24&#34; width=&#34;18&#34; height=&#34;18&#34; fill=&#34;none&#34; stroke=&#34;currentColor&#34; stroke-width=&#34;2&#34; stroke-linecap=&#34;round&#34; stroke-linejoin=&#34;round&#34;&gt;&lt;polyline points=&#34;15 10 20 15 15 20&#34;/&gt;&lt;path d=&#34;M4 4v7a4 4 0 0 0 4 4h12&#34;/&gt;&lt;/svg&gt;&#xA;    &lt;span&gt;I Hate Polling&lt;/span&gt;&#xA;  &lt;/div&gt;&#xA;  &lt;div class=&#34;admonition-content&#34;&gt;&#xA;    &lt;p&gt;I hate polling.&#xA;It is just so wasteful in the majority of cases.&#xA;I cringe when I think of the billions upon billions of things that are polling some system, only because there is no convenient way to get a push.&lt;/p&gt;&#xA;&lt;p&gt;The only polling I can get behind is when NICs automatically transition from events to polling in high frames-per-second situations.&#xA;This is what Linux&amp;rsquo;s &lt;a href=&#34;https://docs.kernel.org/networking/napi.html&#34; target=&#34;_blank&#34;&gt;NAPI&lt;/a&gt; does.&#xA;When the first interrupt under load masks further interrupts, the driver starts polling the receive ring in batches.&#xA;This &lt;em&gt;reduces&lt;/em&gt; load, but only because in heavy traffic we know there will always be work to do.&#xA;Otherwise it falls back to interrupt mode.&lt;/p&gt;&#xA;&lt;p&gt;Other than that case, most polling is just wasteful and sucks.&lt;/p&gt;&#xA;&#xA;  &lt;/div&gt;&#xA;&lt;/div&gt;</description>
			</item>
	</channel>
</rss>
