Best of RedisSeptember 2024

  1. 1
    Article
    Avatar of bytebytegoByteByteGo·2y

    EP131: How Uber Served 40 Million Reads with Integrated Redis Cache?

    Uber uses an integrated caching solution named CacheFront with Redis, Docstore, and MySQL for efficient data handling. The system fetches data from Redis for cache hits and uses MySQL for cache misses, leveraging a CDC service for invalidation. Multi-region cache warming with Redis streaming handles potential database overloads during region fail-overs, while strategic sharding ensures even load distribution across instances.

  2. 2
    Article
    Avatar of communityCommunity Picks·2y

    How I built my open-source Social media scheduling tool... 🤯

    Postiz, an open-source social media scheduling tool, leverages OAuth2 for authentication across different platforms. It uses Redis for queue management to schedule posts and Prisma ORM for database operations with PostgreSQL. The tool's architecture supports horizontal scaling with microservices called 'Workers' to handle post jobs efficiently.

  3. 3
    Article
    Avatar of devtoDEV·2y

    How to implement a Distributed Lock using Redis

    Running multiple instances of an application can create issues with concurrent database writes, potentially leading to inconsistent states. Distributed locking, particularly using Redis, provides a solution by ensuring only one instance can perform critical operations at a time. The Redlock algorithm is an effective method for implementing distributed locks across multiple Redis instances, ensuring consistency even if some instances fail.

  4. 4
    Article
    Avatar of communityCommunity Picks·2y

    Do You Really Need Redis? How to Get Away with Just PostgreSQL

    Redis is often used for job queuing, distributed locking, and pub/sub mechanisms in web services. However, PostgreSQL has features like `SKIP LOCKED`, advisory locks, and the `LISTEN/NOTIFY` statements that can achieve these tasks effectively. This can help simplify your architecture by using just PostgreSQL and reduce operational costs associated with maintaining multiple data services.

  5. 5
    Article
    Avatar of java_libhuntAwesome Java Newsletter·2y

    How to implement a Distributed Lock using Redis

    Handling critical sections in distributed systems can be complex, especially when multiple instances might update the same database. Implementing distributed locking ensures that only one instance performs a critical operation at any given time. Using Redis, both single-instance and Redlock algorithms provide solutions, although they come with their own challenges, such as handling failover in master-replica setups.

  6. 6
    Article
    Avatar of hnHacker News·2y

    Rearchitecting: Redis to SQLite

    Wafris, an open-source web application firewall company, migrated its Rails client from Redis to SQLite to alleviate deployment issues and improve performance. The switch was driven by challenges in managing Redis, especially in cloud environments, and the advantages of SQLite's simplicity and reduced network latency. Performance tests showed a significant speed improvement with SQLite for specific use cases. The rearchitected client aims to make it easier for developers to deploy and manage web application security.

  7. 7
    Article
    Avatar of infoworldInfoWorld·2y

    The open source community strikes back

    The power of the open source community is demonstrated by recent forks of Redis and Terraform, showing resistance to the trend of companies shifting from open source licensing to more restrictive models for profitability. Initially, open source aimed to align with free market benefits to gain corporate acceptance. However, instances like Redis' and HashiCorp's license changes have sparked grassroots actions, including the creation of fully open source forks like Valkey and OpenTofu. This movement underscores that open source is driven by community principles rather than business models.