Best of RedisAugust 2025

  1. 1
    Article
    Avatar of wendelladrielW endell Adriel·40w

    Laravel Queues Under the Hood

    Laravel's queue system transforms slow, unreliable tasks into fast, reliable workflows by moving work off the request cycle. The system follows a pipeline: dispatch jobs, serialize them into JSON payloads, store them via connectors (Redis, Database, SQS), pop them with workers, execute through middleware, and acknowledge or retry with backoff strategies. Redis uses lists and sorted sets for main queues, delayed jobs, and reserved jobs with visibility timeouts. Workers run as long-lived processes that handle job lifecycle, retries, and failures. Advanced features include job chains for sequential execution, batches for parallel processing with progress tracking, unique jobs, and overlapping prevention through cache locks.

  2. 2
    Article
    Avatar of lnLaravel News·39w

    Smart Cache Package for Laravel

    SmartCache is a Laravel package that automatically optimizes cache storage for large datasets through intelligent compression, chunking, and serialization. It provides driver-aware optimization strategies for Redis, file, and database caches, automatically detecting when optimization is needed and seamlessly reconstructing data on retrieval. The package includes features like gzip compression, performance monitoring, and extensible strategy patterns for custom optimizations.

  3. 3
    Article
    Avatar of dcmDistributed Computing Musings·39w

    Thundering Herd Problem: Preventing the Stampede – Distributed Computing Musings

    The thundering herd problem occurs when multiple concurrent requests cause cache misses for the same key, leading all requests to hit the database simultaneously and defeating the purpose of caching. The post demonstrates this issue with a Spring Boot application using Redis cache and Postgres database, then presents two solutions: distributed locking using Redis and in-process synchronization with CompletableFuture and ConcurrentHashMap. The distributed lock approach works across multiple nodes but requires additional network calls, while in-process synchronization is faster but only coordinates requests within a single node.

  4. 4
    Article
    Avatar of platformaticPlatformatic·40w

    Boost Node.js HTTP Requests Efficiency

    Redis-backed HTTP caching solution for Node.js applications using Undici that provides 550x+ performance improvements over uncached requests. The undici-cache-redis library offers enterprise-grade caching with automatic cache invalidation, tag-based cache management, and dual-layer architecture combining local memory cache with Redis persistence. Features include seamless integration with both fetch() and agent.request(), intelligent cache invalidation based on HTTP headers, and shared caching across multiple servers without operational overhead.

  5. 5
    Article
    Avatar of infoqInfoQ·38w

    Pogocache: Open Source Caching Software with Low Latency and Multiple Wire Protocols

    Pogocache, a new open-source caching software written in C, has reached version 1.0 with claims of superior performance over Redis, Memcached, and other alternatives. It supports multiple wire protocols (Redis, Memcached, HTTP, PostgreSQL) on a single port, uses a sharded hashmap design for low latency, and can run either as a server or embedded directly into applications. The project includes performance benchmarks showing faster throughput and lower latency, though some community members call for independent verification of these claims.