<?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: Saba Pochkhua</title>
    <description>The latest articles on DEV Community by Saba Pochkhua (@csenshi).</description>
    <link>https://dev.to/csenshi</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%2F3399662%2F1365ae18-4346-4729-8652-638ffde601eb.jpg</url>
      <title>DEV Community: Saba Pochkhua</title>
      <link>https://dev.to/csenshi</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/csenshi"/>
    <language>en</language>
    <item>
      <title>Solving Redis pain in NestJS — introducing nestjs-redis toolkit</title>
      <dc:creator>Saba Pochkhua</dc:creator>
      <pubDate>Wed, 30 Jul 2025 10:08:50 +0000</pubDate>
      <link>https://dev.to/csenshi/solving-redis-pain-in-nestjs-introducing-nestjs-redis-toolkit-5f8b</link>
      <guid>https://dev.to/csenshi/solving-redis-pain-in-nestjs-introducing-nestjs-redis-toolkit-5f8b</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%2Fnomd2ybycm66riy020pr.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%2Fnomd2ybycm66riy020pr.png" alt="Nestjs Redis Logo" width="240" height="240"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;Redis is fast, powerful, and battle-tested — but integrating it properly in a &lt;strong&gt;NestJS&lt;/strong&gt; project?&lt;/p&gt;

&lt;p&gt;Not so much.&lt;/p&gt;

&lt;p&gt;Over the last few projects, I kept hitting the same roadblocks:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;❌ No official support for &lt;code&gt;node-redis&lt;/code&gt;, the recommended Redis client&lt;/li&gt;
&lt;li&gt;❌ Most packages were built on &lt;code&gt;ioredis&lt;/code&gt; (now in maintenance-only mode)&lt;/li&gt;
&lt;li&gt;❌ Poor support for &lt;strong&gt;multi-client setups&lt;/strong&gt;, &lt;strong&gt;async config&lt;/strong&gt;, and &lt;strong&gt;NestJS-style DI&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;❌ Common utilities like throttling and health checks were scattered, inconsistent, or outdated&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So I decided to fix that.&lt;/p&gt;

&lt;p&gt;I built &lt;a href="https://github.com/CSenshi/nestjs-redis" rel="noopener noreferrer"&gt;&lt;code&gt;nestjs-redis&lt;/code&gt;&lt;/a&gt; — a modular toolkit of Redis utilities for NestJS, powered by &lt;code&gt;node-redis&lt;/code&gt;, tested in real apps, and ready to grow.&lt;/p&gt;




&lt;h2&gt;
  
  
  ✅ What’s in v0.1.0
&lt;/h2&gt;

&lt;p&gt;This is just the beginning, but these 3 modules are already tested and ready to use:&lt;/p&gt;

&lt;h3&gt;
  
  
  🔌 &lt;a href="https://www.npmjs.com/package/@nestjs-redis/client" rel="noopener noreferrer"&gt;&lt;code&gt;@nestjs-redis/client&lt;/code&gt;&lt;/a&gt;
&lt;/h3&gt;

&lt;p&gt;A fully configurable, multi-client Redis module with:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Support for single instance, cluster, and sentinel&lt;/li&gt;
&lt;li&gt;Async config and DI tokens&lt;/li&gt;
&lt;li&gt;Typed, Nest-style setup for &lt;code&gt;node-redis&lt;/code&gt; v5&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  📈 &lt;a href="https://www.npmjs.com/package/@nestjs-redis/throttler-storage" rel="noopener noreferrer"&gt;&lt;code&gt;@nestjs-redis/throttler-storage&lt;/code&gt;&lt;/a&gt;
&lt;/h3&gt;

&lt;p&gt;Redis-backed rate-limiting for &lt;code&gt;@nestjs/throttler&lt;/code&gt;, ready for horizontal scaling.&lt;/p&gt;

&lt;h3&gt;
  
  
  ❤️ &lt;a href="https://www.npmjs.com/package/@nestjs-redis/health-indicator" rel="noopener noreferrer"&gt;&lt;code&gt;@nestjs-redis/health-indicator&lt;/code&gt;&lt;/a&gt;
&lt;/h3&gt;

&lt;p&gt;Drop-in Redis health check module using &lt;code&gt;@nestjs/terminus&lt;/code&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  🧠 Why &lt;code&gt;node-redis&lt;/code&gt;?
&lt;/h2&gt;

&lt;p&gt;Most existing packages rely on &lt;code&gt;ioredis&lt;/code&gt;, which is no longer recommended for new projects.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;“For new projects, &lt;code&gt;node-redis&lt;/code&gt; is the recommended client library.”&lt;br&gt;&lt;br&gt;
– from the &lt;a href="https://github.com/redis/ioredis" rel="noopener noreferrer"&gt;ioredis maintainers&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;code&gt;node-redis&lt;/code&gt; is actively maintained, supports Redis 7+, and integrates with Redis Stack, JSON, Streams, and time-series commands.&lt;/p&gt;




&lt;h2&gt;
  
  
  🔮 Roadmap
&lt;/h2&gt;

&lt;p&gt;Here’s what’s coming next:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;🔐 &lt;strong&gt;Redlock module&lt;/strong&gt; — distributed locking via node-redis or Lua&lt;/li&gt;
&lt;li&gt;🔁 &lt;strong&gt;Redis Streams transporter&lt;/strong&gt; — a custom microservice transport layer for NestJS&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Got suggestions? I’d love to hear what Redis utilities you wish existed in the NestJS world.&lt;/p&gt;




&lt;h2&gt;
  
  
  🧪 How to Get Started
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pnpm add @nestjs-redis/client
pnpm add @nestjs-redis/throttler-storage
pnpm add @nestjs-redis/health-indicator
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Or check out the GitHub repo for usage examples:&lt;br&gt;
👉 &lt;a href="https://github.com/CSenshi/nestjs-redis" rel="noopener noreferrer"&gt;github.com/CSenshi/nestjs-redis&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  💬 Your Feedback Shapes the Future
&lt;/h2&gt;

&lt;p&gt;This is just the beginning — &lt;code&gt;nestjs-redis&lt;/code&gt; is still in beta, but already running in production-like environments.&lt;/p&gt;

&lt;p&gt;If you:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Use Redis in your NestJS app&lt;/li&gt;
&lt;li&gt;Want to get rid of scattered, outdated Redis wrappers&lt;/li&gt;
&lt;li&gt;Like well-typed, testable, open-source packages&lt;/li&gt;
&lt;li&gt;Or just want to help improve the Redis ecosystem&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;👉 I’d love your ideas, issues, contributions, or even just a GitHub ⭐&lt;/p&gt;




&lt;p&gt;Thanks for reading 🙏&lt;br&gt;&lt;br&gt;
Let’s make Redis a &lt;strong&gt;first-class citizen&lt;/strong&gt; in the NestJS ecosystem — together.&lt;/p&gt;

</description>
      <category>nestjs</category>
      <category>redis</category>
      <category>opensource</category>
      <category>node</category>
    </item>
  </channel>
</rss>
