Best of RedisJuly 2024

  1. 1
    Article
    Avatar of lobstersLobsters·2y

    Scaling One Million Checkboxes to 650,000,000 checks

    One Million Checkboxes (OMCB) is a website that scaled from a few expected users to over 650 million checks within days. The architecture involved using Redis for state management, nginx for static content and reverse proxy, and Flask for API handling. The site faced several challenges including unexpected high traffic, Redis connection issues, and bandwidth costs. Solutions included adding more servers, batching updates, using a connection pool, and eventually rewriting the backend in Go, which significantly improved performance. The project emphasized learning and fun over perfect solutions, leading to valuable scaling insights.

  2. 2
    Article
    Avatar of communityCommunity Picks·2y

    Design a Robust School Bus Tracker System

    This post discusses the architecture for a school bus tracker system, focusing on real-time monitoring and parental notifications. Key functional requirements include frequent location updates, real-time map visualization, proximity notifications, and data isolation between schools. Non-functional requirements involve scalability, high availability, reliability, security, and privacy. The post elaborates on various technical aspects such as API design, geohashing for location indexing, and using Redis for real-time updates. It also covers the system’s read/write ratio, proposing DynamoDB, and explores various scalability strategies using AWS managed services.

  3. 3
    Article
    Avatar of communityCommunity Picks·2y

    Can Postgres replace Redis as a cache?

    The post discusses the possibility of using Postgres as a cache instead of Redis, highlighting that while Postgres can simplify the technology stack and reduce costs, it lacks the performance and specialized features of Redis. Unlogged tables in Postgres improve write performance but not read performance. Moreover, Redis offers built-in features like expiration and eviction policies that are complex to implement in Postgres. Ultimately, Redis is recommended for its superior performance and simplicity in use as a caching solution.

  4. 4
    Article
    Avatar of communityCommunity Picks·2y

    One Million Checkboxes

    The creator of 'One Million Checkboxes' shares insights into the rapid development and scaling of his website, utilizing bit arrays, Redis, WebSockets, and React-window for performance. A peculiar bug related to bit ordering is discussed, highlighting the challenges of efficient checkbox state management in a collaborative setting.