<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Farshad Khazaei Fard</title>
    <description>The latest articles on DEV Community by Farshad Khazaei Fard (@nelthaarion).</description>
    <link>https://dev.to/nelthaarion</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4004674%2F04444837-7886-4cdf-bfef-b3265746ac1c.png</url>
      <title>DEV Community: Farshad Khazaei Fard</title>
      <link>https://dev.to/nelthaarion</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nelthaarion"/>
    <language>en</language>
    <item>
      <title>I wanted a Go networking engine that gets out of the way, so I built one (Breeze).</title>
      <dc:creator>Farshad Khazaei Fard</dc:creator>
      <pubDate>Sat, 27 Jun 2026 00:49:42 +0000</pubDate>
      <link>https://dev.to/nelthaarion/i-wanted-a-go-networking-engine-that-gets-out-of-the-way-so-i-built-one-breeze-3jc</link>
      <guid>https://dev.to/nelthaarion/i-wanted-a-go-networking-engine-that-gets-out-of-the-way-so-i-built-one-breeze-3jc</guid>
      <description>&lt;p&gt;Over the past few months, I've been working on Breeze, a networking engine built on top of gnet.&lt;/p&gt;

&lt;p&gt;The goal wasn't to create "another web framework."&lt;/p&gt;

&lt;p&gt;The goal was to explore how far an event-loop architecture can go for modern Go services.&lt;/p&gt;

&lt;p&gt;Some design decisions I made:&lt;/p&gt;

&lt;p&gt;⚡ Event-loop driven architecture&lt;br&gt;
🌐 Native HTTP and WebSocket support&lt;br&gt;
🚀 WebSocket fast-path (avoids the HTTP router after the upgrade)&lt;br&gt;
🧵 Worker pool to keep the event loop responsive&lt;br&gt;
📦 Low-allocation request handling&lt;br&gt;
📚 Built-in Swagger support&lt;br&gt;
🔌 Built-in WebSocket Hub for real-time applications&lt;/p&gt;

&lt;p&gt;One design choice I'm particularly interested in discussing is that HTTP and WebSocket aren't treated the same.&lt;/p&gt;

&lt;p&gt;Every incoming connection is classified inside the event loop. HTTP requests follow the router, while upgraded WebSocket connections are dispatched directly to the WebSocket engine. It keeps the hot path small and avoids unnecessary work once the protocol is established.&lt;/p&gt;

&lt;p&gt;The project is still evolving, and I'm deliberately questioning every architectural decision before calling it "production ready."&lt;/p&gt;

&lt;p&gt;I'd genuinely appreciate feedback from developers who have experience with:&lt;/p&gt;

&lt;p&gt;High-concurrency Go servers&lt;br&gt;
gnet or event-loop architectures&lt;br&gt;
Large-scale WebSocket systems&lt;br&gt;
Low-latency backend services&lt;/p&gt;

&lt;p&gt;Repository:&lt;br&gt;
&lt;a href="https://github.com/nelthaarion/breeze" rel="noopener noreferrer"&gt;https://github.com/nelthaarion/breeze&lt;/a&gt;&lt;br&gt;
Documentation: &lt;br&gt;
&lt;a href="https://nelthaarion.github.io/breeze" rel="noopener noreferrer"&gt;https://nelthaarion.github.io/breeze&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I'm especially interested in hearing what you would change. Architecture discussions are often more valuable than benchmark numbers.&lt;/p&gt;

&lt;p&gt;Happy to answer any questions or dive into implementation details. 🚀&lt;/p&gt;

</description>
      <category>go</category>
      <category>networking</category>
      <category>performance</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
