<?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: Derrick</title>
    <description>The latest articles on DEV Community by Derrick (@nefintec).</description>
    <link>https://dev.to/nefintec</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%2F3740607%2Ffd295e05-0060-4b03-9004-85a425d388d4.png</url>
      <title>DEV Community: Derrick</title>
      <link>https://dev.to/nefintec</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nefintec"/>
    <language>en</language>
    <item>
      <title>How to Build a "Financial Firewall": Multi-Cloud High Availability on a $0 Budget</title>
      <dc:creator>Derrick</dc:creator>
      <pubDate>Mon, 09 Feb 2026 14:15:00 +0000</pubDate>
      <link>https://dev.to/nefintec/how-to-build-a-financial-firewall-multi-cloud-high-availability-on-a-0-budget-3ih2</link>
      <guid>https://dev.to/nefintec/how-to-build-a-financial-firewall-multi-cloud-high-availability-on-a-0-budget-3ih2</guid>
      <description>&lt;p&gt;The "Cloud Success Tax" is a silent killer for indie hackers and startups. You build a project, it gets a bit of traction, and suddenly you're hit with overage fees and egress costs that turn your hobby into a liability. &lt;/p&gt;

&lt;p&gt;Most developers are taught that High Availability (HA) is an expensive enterprise luxury involving complex clusters and load balancers. I wanted to challenge that by building a "Financial Orchestrator" directly into the gateway layer.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Theory: Financial Waterfall Routing
&lt;/h2&gt;

&lt;p&gt;Instead of just balancing load, why not orchestrate it based on &lt;strong&gt;priority and cost&lt;/strong&gt;? &lt;/p&gt;

&lt;p&gt;The idea behind &lt;strong&gt;Waterfall Routing&lt;/strong&gt; is simple: maximize your free-tier credits across multiple providers before you spend a single cent. &lt;/p&gt;

&lt;h3&gt;
  
  
  1. The "Monthly Cap" Pivot
&lt;/h3&gt;

&lt;p&gt;Most cloud providers have generous free tiers (e.g., 1M requests per month). In Crate.cc, I've implemented a way to set a "Usage Threshold." Once you hit 90% of your free tier on Provider A, the gateway automatically "switches tracks" to Provider B. &lt;/p&gt;

&lt;p&gt;You aren't just scaling for performance; you're scaling for &lt;strong&gt;arbitrage&lt;/strong&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. The Automatic Error Fallback (The Safety Net)
&lt;/h3&gt;

&lt;p&gt;Usage caps protect your wallet; &lt;strong&gt;In-Flight Retries&lt;/strong&gt; protect your uptime. Free-tier instances are often "burstable" or shared, meaning they can be flaky. &lt;/p&gt;

&lt;p&gt;Crate.cc acts as a defensive guardian:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Detection:&lt;/strong&gt; If a destination returns a 5xx or hits a network timeout.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Redirection:&lt;/strong&gt; It immediately retries the request against your secondary "Safety" destination.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Method Safety:&lt;/strong&gt; Built in Go, the logic ensures we only retry "safe" methods (like &lt;code&gt;GET&lt;/code&gt;). We never blindly retry a &lt;code&gt;POST&lt;/code&gt; or &lt;code&gt;DELETE&lt;/code&gt; to avoid double-processing your data.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Implementation: Why Go and Redis?
&lt;/h2&gt;

&lt;p&gt;To make these decisions in real-time without adding 500ms of latency, the architecture relies on:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Redis Atomic Counters:&lt;/strong&gt; To track request counts across a global distributed gateway. &lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;High-Performance Go Routines:&lt;/strong&gt; To handle background health checks and threshold monitoring.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Stateless Logic:&lt;/strong&gt; Ensuring the "hop" between Cloud A and Cloud B is nearly invisible to the end-user.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  The ROI: Cloud Success Tax vs. The Crate Waterfall
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Feature&lt;/th&gt;
&lt;th&gt;Standard "Single Cloud" Setup&lt;/th&gt;
&lt;th&gt;The Crate.cc "Waterfall" Setup&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Primary Destination&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;1M Free Requests (Cloud A)&lt;/td&gt;
&lt;td&gt;1M Free Requests (Cloud A)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Overages (Next 2M)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;~$2.00 - $7.00 + Egress&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;$0.00&lt;/strong&gt; (Waterfall to Cloud B &amp;amp; C)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Uptime Strategy&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Manual or Expensive LB&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Automatic In-Flight Retries&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Stability&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Single Point of Failure&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Multi-Cloud Resilience&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Monthly Cost&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Variable Overage Anxiety&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;Flat $5/mo&lt;/strong&gt; (Crate standard plan: 1tb data)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Conclusion: The "Zero-Ops" Multi-Cloud
&lt;/h2&gt;

&lt;p&gt;You don't need a $200k/year SRE team to set up multi-cloud failover. You just need a gateway that understands that &lt;strong&gt;Uptime&lt;/strong&gt; and &lt;strong&gt;Budget&lt;/strong&gt; are the same thing. &lt;/p&gt;

&lt;p&gt;I'm building &lt;a href="https://crate.cc" rel="noopener noreferrer"&gt;Crate.cc&lt;/a&gt; to give developers the tools to scale without the fear of a surprise bill.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftj9qyc1pawcdsbjmok06.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftj9qyc1pawcdsbjmok06.png" alt=" " width="800" height="2043"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;I'm currently building Crate in public. If you have thoughts on "idempotency-aware" retries or how you're hacking free tiers, let's talk in the comments!&lt;/em&gt;&lt;/p&gt;

</description>
      <category>architecture</category>
      <category>cloud</category>
      <category>serverless</category>
      <category>webdev</category>
    </item>
    <item>
      <title>I accidentally DDoS'd myself (and why you should too)</title>
      <dc:creator>Derrick</dc:creator>
      <pubDate>Tue, 03 Feb 2026 18:45:40 +0000</pubDate>
      <link>https://dev.to/nefintec/i-accidentally-ddosd-myself-and-why-you-should-too-38pf</link>
      <guid>https://dev.to/nefintec/i-accidentally-ddosd-myself-and-why-you-should-too-38pf</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fluedbevy9x6nt2ft7f11.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fluedbevy9x6nt2ft7f11.png" alt=" " width="800" height="178"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I launched my SaaS, Crate, just 72 hours ago. It’s an API Gateway designed to protect backends from traffic spikes and anomalies.&lt;/p&gt;

&lt;p&gt;Last night, I became my own first victim.&lt;/p&gt;

&lt;p&gt;I was working late on a new feature and needed to verify a config change. I pulled up my admin dashboard, not realizing it was the production tab and my auth token had expired hours ago.&lt;/p&gt;

&lt;p&gt;What happened next was a classic "Frontend vs. Backend" failure that I didn't see coming.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The "Retry Storm"&lt;/strong&gt;&lt;br&gt;
I assumed my frontend was smart. I assumed that if it hit a 401 Unauthorized error, it would gracefully redirect me to the login page.&lt;/p&gt;

&lt;p&gt;I was wrong.&lt;/p&gt;

&lt;p&gt;Instead, a race condition in my data-fetching logic caused the dashboard to attempt to "refresh" the view immediately upon failure. Because the token was still invalid, the refresh failed again. And again.&lt;/p&gt;

&lt;p&gt;In less than 30 seconds, my laptop rapid-fired requests to my production API, all returning 401.&lt;/p&gt;

&lt;p&gt;If this had been a user, they would have just seen a spinning loading wheel. But because I was "Dogfooding" my own tool, I got to see the backend consequence.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Watchdog Barks&lt;/strong&gt;&lt;br&gt;
I built Crate using Go and Redis specifically to catch this kind of noise with zero latency. I set up a "General 400" rule to track client-side errors, assuming it would mostly catch bad form submissions or broken links.&lt;/p&gt;

&lt;p&gt;I didn't expect it to catch me.&lt;/p&gt;

&lt;p&gt;Less than a minute after opening my dashboard, my phone buzzed.&lt;/p&gt;

&lt;p&gt;Subject: Alert: High Volume of 4xx Errors Trigger: &amp;gt; 10 errors in 1 minute&lt;/p&gt;

&lt;p&gt;The alerting engine had detected the anomaly—a 1200% spike in error rates from a single IP—and fired the notification.&lt;/p&gt;

&lt;p&gt;Why this matters... (The Dogfooding Argument)&lt;br&gt;
If I hadn't been using my own tool to build my own tool, two things would have happened:&lt;/p&gt;

&lt;p&gt;The Bug would have shipped: I would have deployed that frontend logic to customers. A user with an expired token would have silently hammered my API in the background, wasting their bandwidth and my server resources.&lt;/p&gt;

&lt;p&gt;I wouldn't trust the Alerting: Seeing that email hit my inbox instantly gave me more confidence in the system than 100 unit tests ever could. Even more so when I saw the resolution email 2 minutes later letting me know the spike was over.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Fix&lt;/strong&gt;&lt;br&gt;
I patched the frontend before breakfast. I added a strict check in the API interceptor to halt all outgoing requests immediately upon receiving a 401 and force a hard redirect to /login.&lt;/p&gt;

&lt;p&gt;The graph went flat. The alerts stopped.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Takeaway&lt;/strong&gt;&lt;br&gt;
We talk a lot about "Chaos Engineering" and complex testing frameworks. But sometimes, the best test is just being tired, having an expired token, and trying to use your own product on a Monday night.&lt;/p&gt;

&lt;p&gt;If you aren't dogfooding your own critical path, you aren't seeing the sharp edges.&lt;/p&gt;

&lt;p&gt;I'm building Crate in public. If you want to stop your own "Retry Storms" from running up your serverless bill, check it out at &lt;a href="https://crate.cc" rel="noopener noreferrer"&gt;Crate.cc&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>devops</category>
      <category>webdev</category>
      <category>testing</category>
      <category>startup</category>
    </item>
    <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>
