Best of RedisOctober 2024

  1. 1
    Article
    Avatar of hnHacker News·2y

    How to do distributed locking — Martin Kleppmann’s blog

    The post examines the Redlock algorithm for distributed locking on Redis, highlighting its limitations in terms of timing assumptions and lack of support for fencing tokens, which are crucial for ensuring correctness. It argues that while Redis is suitable for some non-critical locking scenarios, Redlock may not be reliable for critical applications requiring strong consistency. It suggests using more robust consensus algorithms like ZooKeeper when correctness is essential.

  2. 2
    Video
    Avatar of communityCommunity Picks·2y

    Modern Redis Crash Course: Backend with Express, TypeScript and Zod

    Learn how to implement Redis in a Node.js project using Express and TypeScript, with a focus on understanding Redis as an in-memory data store and its use cases for caching and primary data storage. The course covers setting up a Redis client, creating middleware for standardized API responses, and using Zod for schema validation. Using a project-based approach, you'll build a restaurant directory backend with endpoints for viewing, ranking, searching, and getting weather information.

  3. 3
    Article
    Avatar of communityCommunity Picks·2y

    Using Redis for Caching in Laravel: A Step-by-Step Guide

    Discover how to set up Redis for caching in Laravel applications with this step-by-step guide. Learn about installing Redis and connecting it to Laravel using phpredis, configuring environment variables, and performing various cache operations such as adding, getting, and deleting cache elements. Additionally, understand advanced usage scenarios like key pattern searches and incremental scanning for handling large datasets efficiently.

  4. 4
    Article
    Avatar of hnHacker News·2y

    andrearaponi/dito: an advanced Layer 7 reverse proxy server written in Go

    Dito is a sophisticated Layer 7 reverse proxy server written in Go, offering features such as dynamic configuration reloading, middleware support, distributed caching and rate limiting with Redis, and custom TLS certificate management. The project structure includes various directories for core application logic, Redis client, configuration utilities, and middleware implementations. Detailed instructions are provided for cloning, building, and running the application, including examples of configuration using YAML files. Middleware options like authentication, rate limiting, and caching are supported, with an emphasis on using Redis for distributed tasks.

  5. 5
    Article
    Avatar of taiTowards AI·2y

    Supercharge FastAPI with Redis

    In the pursuit of optimizing FastAPI applications for handling AI models, employing caching mechanisms can significantly enhance speed and efficiency. This post explores the challenges of handling redundant computations and offers solutions using DiskCache and Redis for caching. Redis, with its in-memory database capabilities, provides rapid data retrieval and multiple data persistence options. Additionally, Upstash offers a serverless Redis platform for ease of integration. By combining FastAPI with Redis, developers can build fast and reliable AI-driven applications.