<?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: Subhodip Mishra</title>
    <description>The latest articles on DEV Community by Subhodip Mishra (@subhodip_mishra_985fe87a7).</description>
    <link>https://dev.to/subhodip_mishra_985fe87a7</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%2F3989536%2Faf5943ad-bf53-4f9c-988e-ccb3b9a95a89.png</url>
      <title>DEV Community: Subhodip Mishra</title>
      <link>https://dev.to/subhodip_mishra_985fe87a7</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/subhodip_mishra_985fe87a7"/>
    <language>en</language>
    <item>
      <title>Why I stopped using Redis for rate limiting</title>
      <dc:creator>Subhodip Mishra</dc:creator>
      <pubDate>Wed, 17 Jun 2026 17:16:24 +0000</pubDate>
      <link>https://dev.to/subhodip_mishra_985fe87a7/1042-pmclaude-responded-titletitlewhy-i-stopped-using-redis-for-rate-limiting-34e0</link>
      <guid>https://dev.to/subhodip_mishra_985fe87a7/1042-pmclaude-responded-titletitlewhy-i-stopped-using-redis-for-rate-limiting-34e0</guid>
      <description>&lt;h2&gt;
  
  
  The Problem
&lt;/h2&gt;

&lt;p&gt;Every Node.js rate limiting solution I tried had the same issue — Redis in the hot path.&lt;/p&gt;

&lt;p&gt;Request comes in → middleware → network call to Redis → wait → process. That's 5-20ms added to every single request. At scale, this becomes a real problem.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;Pace runs a Rust native addon directly inside your Node.js process via napi-rs.&lt;/p&gt;

&lt;p&gt;No network calls. No Redis. Decisions happen in memory in under 0.001ms.&lt;/p&gt;

&lt;h2&gt;
  
  
  How it works
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm i pace-node
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;pace&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Pace&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt; &lt;span class="na"&gt;mode&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;active&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt; &lt;span class="p"&gt;});&lt;/span&gt;

&lt;span class="nx"&gt;app&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;post&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;/api&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;pace&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;limit&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
  &lt;span class="na"&gt;algorithm&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;sliding-window&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="na"&gt;limit&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="na"&gt;window&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;1m&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;
&lt;span class="p"&gt;}),&lt;/span&gt; &lt;span class="nx"&gt;handler&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Why Rust?
&lt;/h2&gt;

&lt;p&gt;Rust runs natively inside Node.js process — completely bypassing JavaScript V8 garbage collection pauses. Memory footprint under 2MB.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;If you've dealt with Redis latency or API abuse at scale, I'd love to hear your experience — and check out what I built: &lt;a href="https://pace-waitlist-mu.vercel.app/" rel="noopener noreferrer"&gt;Pace Cloud&lt;/a&gt;&lt;/p&gt;

</description>
      <category>node</category>
      <category>rust</category>
      <category>python</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
