Redis Patterns & Optimization

•
5
•

Implements high-performance Redis patterns for caching, session management, rate limiting, and background job processing.

This skill provides a comprehensive suite of Redis implementation patterns optimized for Node.js environments using ioredis and node-redis. It equips Claude with the expertise to build resilient backend systems through advanced cache-aside strategies, atomic operations via Lua scripting, and reliable background processing with BullMQ. By enforcing critical best practices—such as separate connections for Pub/Sub, mandatory error handling, and cluster/sentinel integration—the skill ensures that Redis is utilized as a high-performance, ephemeral data store that complements primary databases without risking data inconsistency or application crashes.

主な機能

01Distributed rate limiting and atomic locking using custom Lua scripts.
02Advanced caching patterns including cache-aside, write-through, and stampede prevention.
03Real-time messaging architectures using both Pub/Sub and persistent Redis Streams.
04Production-ready connection management with Cluster and Sentinel support.
05Robust background job queuing and worker patterns powered by BullMQ.
065 GitHub stars

ユースケース

01Managing complex background workflows and scheduled tasks with retry logic.
02Implementing session stores and distributed rate limiters for high-traffic microservices.
03Scaling API performance by offloading heavy database queries to a managed cache.