Best of RedisJune 2025

  1. 1
    Article
    Avatar of towardsdevTowards Dev·50w

    Blazing Fast Leaderboards using Redis

    A gaming platform faced severe performance issues with MySQL-based leaderboards, taking 30+ seconds to load for 1 million users. By migrating to Redis sorted sets (ZSETs), they reduced response times from 30 seconds to under 50 milliseconds. The implementation uses ZADD for storing user scores, ZCOUNT for ranking, and ZREVRANGE for pagination. While Redis dramatically improved performance, challenges remain with initial data loading for large datasets and concurrent write operations affecting query response times.

  2. 2
    Video
    Avatar of awesome-codingAwesome·50w

    I built my own Redis in Go and it was too easy...

    A developer builds a custom in-memory database in Go as an alternative to Redis, implementing core features like TCP server with goroutines, command parsing for basic operations (set, get, delete), data persistence through file logging, pub/sub messaging using Go channels, and key expiration with background cleanup routines. The project demonstrates how Go's concurrency features make building database-like systems surprisingly straightforward.

  3. 3
    Article
    Avatar of medium_jsMedium·50w

    Laravel Under Pressure: High-Traffic Optimization with Cache, Queue & Session Tactics

    Laravel applications can handle high traffic effectively when properly configured. Key optimizations include switching from file-based to Redis caching, using proper queue drivers instead of database queues, implementing route/config/view caching, managing sessions with Redis, and ensuring stateless architecture for horizontal scaling. The guide covers practical tactics like eager loading to prevent N+1 queries, batch job processing, rate limiting, and proper monitoring tools for production environments.

  4. 4
    Article
    Avatar of redislabsRedis·48w

    Redis to Manage Storage Replication

    A freelancer shares how Redis transformed their file system replication architecture by replacing a complex SQL-based solution with Redis pub/sub messaging. The new approach eliminated scheduled batch jobs in favor of real-time replication, reduced operational overhead, and leveraged Redis data structures for analytics. The case study demonstrates Redis's versatility beyond caching, showing its effectiveness for messaging, data storage, and system coordination.

  5. 5
    Article
    Avatar of dev_worldDev World·49w

    FastAPI Cachekit: a high-performance, pluggable caching extension for FastAPI.

    FastAPI Cachekit is a production-ready caching library that simplifies adding caching to FastAPI applications through decorators or dependency injection. It supports multiple backends including in-memory caching for development, Redis for distributed production environments, PostgreSQL for persistent SQL-based caching, and Memcached for high-speed distributed caching.

  6. 6
    Article
    Avatar of hnHacker News·49w

    rajivharlalka/filedb: Disk Based Key-Value Store Inspired by Bitcask

    FileDB is a Zig implementation of the Bitcask key-value store architecture, featuring log-structured storage with in-memory metadata hashtables for O(1) lookups. It uses append-only disk files with periodic compaction and includes a Redis-compatible interface. Benchmark results show throughput of ~14K requests/second for writes and up to 104K requests/second for reads with multi-threading.