<?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>Forem: zy j</title>
    <description>The latest articles on Forem by zy j (@zy_j_bc7535dad2d7952ef5e1).</description>
    <link>https://forem.com/zy_j_bc7535dad2d7952ef5e1</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%2F3773359%2Fcb97336d-e283-495b-8957-e5d653ee1a2e.png</url>
      <title>Forem: zy j</title>
      <link>https://forem.com/zy_j_bc7535dad2d7952ef5e1</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/zy_j_bc7535dad2d7952ef5e1"/>
    <language>en</language>
    <item>
      <title>The day my LLM app hit the quota wall (and the boring fix that saved it)</title>
      <dc:creator>zy j</dc:creator>
      <pubDate>Tue, 17 Feb 2026 13:04:29 +0000</pubDate>
      <link>https://forem.com/zy_j_bc7535dad2d7952ef5e1/i-hit-the-llm-quota-wall-so-i-built-a-router-that-cut-costs-without-killing-ux-4n0f</link>
      <guid>https://forem.com/zy_j_bc7535dad2d7952ef5e1/i-hit-the-llm-quota-wall-so-i-built-a-router-that-cut-costs-without-killing-ux-4n0f</guid>
      <description>&lt;h1&gt;
  
  
  The day my LLM app hit the quota wall (and the boring fix that saved it)
&lt;/h1&gt;

&lt;p&gt;I had one of those "this is fine" moments.&lt;/p&gt;

&lt;p&gt;My little app was working. People were using it. Then one evening it started failing in the dumbest way:&lt;br&gt;
&lt;strong&gt;random errors + slow replies + a bill that didn’t match my mental math.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Nothing “mystical” happened. I just hit the quota wall.&lt;/p&gt;

&lt;p&gt;Here’s what I did next (it’s not fancy, but it’s the first thing I’d ship again).&lt;/p&gt;




&lt;h2&gt;
  
  
  What the quota wall looks like (in a real product)
&lt;/h2&gt;

&lt;p&gt;It usually shows up as one of these:&lt;/p&gt;

&lt;p&gt;1) &lt;strong&gt;Hard stops&lt;/strong&gt; — requests fail, users bounce.&lt;br&gt;
2) &lt;strong&gt;Soft stops&lt;/strong&gt; — latency spikes, retries pile up, UX feels laggy.&lt;br&gt;
3) &lt;strong&gt;Silent drift&lt;/strong&gt; — outputs get worse or inconsistent, and you spend time “re-doing” work.&lt;/p&gt;

&lt;p&gt;If you’re trying to make money, the killer isn’t “the model isn’t smart.”&lt;br&gt;
It’s &lt;strong&gt;you can’t predict delivery or cost&lt;/strong&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  The boring fix: cheap-by-default + upgrade only when it matters
&lt;/h2&gt;

&lt;p&gt;I stopped calling the expensive model for everything.&lt;/p&gt;

&lt;p&gt;Instead I used a simple rule:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Default:&lt;/strong&gt; cheap model&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Upgrade:&lt;/strong&gt; only for user‑facing, high‑stakes, or irreversible steps&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fallback:&lt;/strong&gt; if it errors / times out / quota caps, try another provider/model&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That’s it.&lt;/p&gt;

&lt;p&gt;It’s basically how you’d run any service with reliability requirements.&lt;/p&gt;




&lt;h2&gt;
  
  
  The “if/then” rules I actually use
&lt;/h2&gt;

&lt;p&gt;If I had to explain it to a friend, I’d write it like this:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;If the task is &lt;strong&gt;drafting&lt;/strong&gt; → cheap model&lt;/li&gt;
&lt;li&gt;If the task is &lt;strong&gt;final copy users will see&lt;/strong&gt; → stronger model&lt;/li&gt;
&lt;li&gt;If the output must follow a strict format → cheap model first, &lt;strong&gt;upgrade only if it fails validation&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;If it’s taking longer than X seconds → switch to the fast fallback&lt;/li&gt;
&lt;li&gt;If the request fails with quota/rate-limit → switch provider immediately&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Validation can be dumb:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;did it include required fields?&lt;/li&gt;
&lt;li&gt;did it follow the JSON/schema?&lt;/li&gt;
&lt;li&gt;is it empty/too short?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You don’t need a PhD. You need a gate.&lt;/p&gt;




&lt;h2&gt;
  
  
  The only 3 numbers worth tracking (or you’re guessing)
&lt;/h2&gt;

&lt;p&gt;I log these, otherwise I’m just vibes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;cost per request&lt;/strong&gt; (and per user/day)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;latency&lt;/strong&gt; (p50/p95)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;redo rate&lt;/strong&gt; (how often I have to rerun / fix / user complains)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you want a money metric:&lt;br&gt;
&lt;strong&gt;cost per useful outcome&lt;/strong&gt; (total cost / successful completions).&lt;/p&gt;




&lt;h2&gt;
  
  
  Quick question (I want replies)
&lt;/h2&gt;

&lt;p&gt;If you’ve shipped anything with LLMs:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Where did you hit the wall first — &lt;strong&gt;cost&lt;/strong&gt;, &lt;strong&gt;rate limits&lt;/strong&gt;, or &lt;strong&gt;quality drift&lt;/strong&gt;?&lt;/li&gt;
&lt;li&gt;What kind of app is it (writing tool / support / automation / something else)?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Drop your constraints (budget + latency). I’ll reply with the exact routing rules I’d start with.&lt;/p&gt;




&lt;p&gt;Context that pushed me to write this:&lt;br&gt;
&lt;a href="https://dev.to/dor_amir_dbb52baafff7ca5b/i-kept-hitting-the-quota-wall-with-ai-coding-tools-so-i-built-a-router-5lj"&gt;https://dev.to/dor_amir_dbb52baafff7ca5b/i-kept-hitting-the-quota-wall-with-ai-coding-tools-so-i-built-a-router-5lj&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>productivity</category>
      <category>saas</category>
      <category>startup</category>
    </item>
  </channel>
</rss>
