<?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: Sin</title>
    <description>The latest articles on DEV Community by Sin (@pigglegiggle).</description>
    <link>https://dev.to/pigglegiggle</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3828877%2Fdc88dbe8-52f4-463a-b688-f486bc7e3607.jpeg</url>
      <title>DEV Community: Sin</title>
      <link>https://dev.to/pigglegiggle</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/pigglegiggle"/>
    <language>en</language>
    <item>
      <title>I got tired of explaining my commits before every meeting… so I built this</title>
      <dc:creator>Sin</dc:creator>
      <pubDate>Thu, 02 Apr 2026 17:30:42 +0000</pubDate>
      <link>https://dev.to/pigglegiggle/i-got-tired-of-explaining-my-commits-before-every-meeting-so-i-built-this-1ml0</link>
      <guid>https://dev.to/pigglegiggle/i-got-tired-of-explaining-my-commits-before-every-meeting-so-i-built-this-1ml0</guid>
      <description>&lt;p&gt;You know that moment when someone asks&lt;br&gt;
"what did you work on"&lt;br&gt;
and you just stare at your commit history&lt;/p&gt;

&lt;p&gt;After a long day with tons of commits&lt;br&gt;
there’s no way I’m summarizing that on the spot&lt;/p&gt;

&lt;p&gt;So I built a small tool for myself &lt;/p&gt;

&lt;p&gt;It connects to a GitHub repo and turns commits&lt;br&gt;
into a clean, readable changelog you can actually use&lt;/p&gt;

&lt;p&gt;Nothing fancy, just saves me time and awkward explanations&lt;/p&gt;

&lt;p&gt;Curious if anyone else has this problem or just me&lt;/p&gt;

&lt;p&gt;(I’ll drop the link in the comments if anyone wants it)&lt;/p&gt;

</description>
      <category>ai</category>
      <category>productivity</category>
      <category>discuss</category>
      <category>github</category>
    </item>
    <item>
      <title>I built a reverse proxy load balancer in Go (with health checks + failover)</title>
      <dc:creator>Sin</dc:creator>
      <pubDate>Tue, 17 Mar 2026 08:01:25 +0000</pubDate>
      <link>https://dev.to/pigglegiggle/i-built-a-reverse-proxy-load-balancer-in-go-with-health-checks-failover-1890</link>
      <guid>https://dev.to/pigglegiggle/i-built-a-reverse-proxy-load-balancer-in-go-with-health-checks-failover-1890</guid>
      <description>&lt;p&gt;I wanted to understand how real load balancers work under the hood, so I built one in Go using only the standard library.&lt;/p&gt;

&lt;p&gt;A minimal implementation that still incorporates essential building blocks of production-style load balancers:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Reverse proxy using httputil.ReverseProxy&lt;/li&gt;
&lt;li&gt;Atomic round-robin load balancing (no mutex)&lt;/li&gt;
&lt;li&gt;Active health checks (runs every 10s, concurrent probing)&lt;/li&gt;
&lt;li&gt;Automatic failover + retry on backend failure&lt;/li&gt;
&lt;li&gt;Structured request logging&lt;/li&gt;
&lt;li&gt;Skips unhealthy backends dynamically&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Architecture:&lt;/p&gt;

&lt;p&gt;Client → Load Balancer (:8080) → Backend servers (:9001, :9002, :9003)&lt;/p&gt;

&lt;p&gt;How it works:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Each request is forwarded through a reverse proxy&lt;/li&gt;
&lt;li&gt;A global atomic counter distributes traffic (round-robin)&lt;/li&gt;
&lt;li&gt;Health checker continuously probes /health on each backend&lt;/li&gt;
&lt;li&gt;If a backend fails → it’s marked down and skipped&lt;/li&gt;
&lt;li&gt;Proxy retries request on the next available backend&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;One thing I found interesting:&lt;br&gt;
Go’s httputil.ReverseProxy gives you hooks like ErrorHandler, which makes it possible to implement retry/failover cleanly &lt;em&gt;before&lt;/em&gt; any response is sent.&lt;/p&gt;

&lt;p&gt;Example behavior:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Kill one backend → traffic automatically reroutes&lt;/li&gt;
&lt;li&gt;Restart it → it gets picked up again after health check&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Everything is built with Go stdlib — no frameworks, no external deps.&lt;/p&gt;

&lt;p&gt;Repo:&lt;br&gt;
&lt;a href="https://github.com/pigglegiggle/load_balancer" rel="noopener noreferrer"&gt;https://github.com/pigglegiggle/load_balancer&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Would love feedback on:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;architecture decisions&lt;/li&gt;
&lt;li&gt;better load balancing strategies (least connections, etc.)&lt;/li&gt;
&lt;li&gt;production improvements&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>opensource</category>
      <category>go</category>
      <category>beginners</category>
      <category>discuss</category>
    </item>
  </channel>
</rss>
