Best of RedisApril 2026

  1. 1
    Article
    Avatar of nestjsdevsNestjs Developers·7w

    nestjs-sliding-window-throttler

    A new NestJS library called nestjs-sliding-window-throttler addresses performance and accuracy issues with the standard @nestjs/throttler. The standard throttler makes 3 separate Redis calls per request, causing ~2-3ms latency and potential race conditions, while fixed-window algorithms allow up to 2x burst traffic at window boundaries. This drop-in replacement uses a single atomic Redis operation with true sliding window timestamp tracking, achieving ~1ms latency, 99% accuracy, and 2-3x higher throughput. It leverages Redis 7.0+ Functions with automatic Lua fallback for older versions, making it suitable for security-critical endpoints like login attempts and password resets.

  2. 2
    Article
    Avatar of lnLaravel News·6w

    Redis Cluster Support for Queues in Laravel 13.5.0

    Laravel 13.5.0 ships first-class Redis Cluster support for the queue driver and ConcurrencyLimiter, resolving CROSSSLOT errors on AWS ElastiCache Serverless and other cluster deployments by automatically wrapping queue names in Redis hash tags. The release also completes #[Delay] attribute support for queued mailables, enables Controller Middleware attribute inheritance in child controllers, expands UnitEnum support across CacheManager, MailManager, and AuthManager, adds Closure support to updateOrCreate and firstOrNew, and introduces a Cache::handleUnserializableClassUsing() hook for detecting broken cache values. Several bug fixes are included for queue lock handling, auth redirect callbacks, and phpredis SSL options.

  3. 3
    Article
    Avatar of systemdesigncodexSystem Design Codex·4w

    Top Cache Eviction Strategies

    A structured overview of five cache eviction strategies: TTL, LRU, LFU, MRU, and Segmented LRU (SLRU). Each strategy is explained with how it works, best use cases, pros and cons, and where applicable, a code example using Redis. TTL removes items after a fixed time, LRU evicts the least recently accessed, LFU removes the least frequently accessed, MRU evicts the most recently accessed (useful for streaming/batch workloads), and SLRU splits the cache into probationary and protected segments for a hybrid approach.