<?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: Crate</title>
    <description>The latest articles on DEV Community by Crate (@cratecc).</description>
    <link>https://dev.to/cratecc</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%2Forganization%2Fprofile_image%2F12362%2Ff2d793e8-4aca-4089-86ba-70254084427c.png</url>
      <title>DEV Community: Crate</title>
      <link>https://dev.to/cratecc</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/cratecc"/>
    <language>en</language>
    <item>
      <title>How I beat the "Serverless Tax" using Go and Redis</title>
      <dc:creator>Derrick</dc:creator>
      <pubDate>Fri, 30 Jan 2026 14:30:00 +0000</pubDate>
      <link>https://dev.to/cratecc/how-i-beat-the-serverless-tax-using-go-and-redis-5hjb</link>
      <guid>https://dev.to/cratecc/how-i-beat-the-serverless-tax-using-go-and-redis-5hjb</guid>
      <description>&lt;h2&gt;
  
  
  The Problem
&lt;/h2&gt;

&lt;p&gt;I love Vercel and Netlify for side projects. The developer experience is unmatched.&lt;/p&gt;

&lt;p&gt;But I hate the "Success Tax."&lt;/p&gt;

&lt;p&gt;The moment a side project gets traction, the function invocation limits kick in. You go from the "Free Tier" to "Enterprise Pricing" overnight, often for traffic that isn't even monetized yet.&lt;/p&gt;

&lt;p&gt;I didn't want to migrate to Kubernetes, but I didn't want to pay $20/mo per project just to handle a few spikes.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Solution: A "Poor Man's" Load Balancer
&lt;/h2&gt;

&lt;p&gt;I realized that while one free tier has limits, &lt;em&gt;three&lt;/em&gt; free tiers have triple the limits.&lt;/p&gt;

&lt;p&gt;I built a lightweight API Gateway called &lt;strong&gt;Crate&lt;/strong&gt; using Go and Redis.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Architecture
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;The Gateway:&lt;/strong&gt; A Go binary running on a cheap bare-metal server (Colocrossing).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The State:&lt;/strong&gt; Redis is used for distributed rate limiting and analytics tracking.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The Routing:&lt;/strong&gt; It uses &lt;code&gt;httputil.ReverseProxy&lt;/code&gt; with in-memory round-robin logic to split requests across multiple backends.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Instead of pointing my domain to Vercel, I point it to Crate. Crate then splits the traffic:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;33% -&amp;gt; Vercel Project A&lt;/li&gt;
&lt;li&gt;33% -&amp;gt; Vercel Project B&lt;/li&gt;
&lt;li&gt;33% -&amp;gt; Netlify Backup&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  The Result
&lt;/h3&gt;

&lt;p&gt;I effectively multiplied my free tier limits. I can now handle 3x the traffic without paying a cent in overage fees.&lt;/p&gt;

&lt;p&gt;I also use it to run &lt;strong&gt;Hybrid Architectures&lt;/strong&gt;. I split traffic 50/50 between a Serverless Function (for scale) and a fixed-cost VPS (for baseline load). This keeps my bill predictable.&lt;/p&gt;

&lt;h2&gt;
  
  
  Want to try it?
&lt;/h2&gt;

&lt;p&gt;I'm looking for 10 developers to help me stress-test the Go implementation.&lt;/p&gt;

&lt;p&gt;I'm charging &lt;strong&gt;$5/mo&lt;/strong&gt; (locked in for life) just to cover the server costs.&lt;/p&gt;

&lt;p&gt;If you are tired of watching your usage meters like a hawk, check it out here:&lt;br&gt;
&lt;a href="https://crate.cc" rel="noopener noreferrer"&gt;https://crate.cc&lt;/a&gt;&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>go</category>
      <category>serverless</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
