Redis

Stay up when a region goes down: Highly available Redis for Python apps | Redis

Sep 23, 2026Redis
Stay up when a region goes down: Highly available Redis for Python apps | Redis
SummaryAI, from the source post

This post introduces the `MultiDBClient` for redis-py, a new capability for client-side geographic failover. It details the implementation of `MultiDBClient`, including `DatabaseConfig` and `MultiDbConfig` for managing multiple regional Redis instances. The post explains the use of a circuit-breaker pattern for failure detection, complementary to proactive background health checks. It outlines health-check policies (HEALTHY_ALL, HEALTHY_ANY, HEALTHY_MAJORITY) and their impact on performance, along with configuration options for high-throughput scenarios. Observability features, such as runtime notifications and Prometheus metrics (`redis.client.geofailover.failovers`), are also described.