NewWork mode: your Claude Code or Codex on work calls, answering from your project's codeSkip to content
Middle+0 views

What happened if a particular Redis cache instance went down?

Practice

AI answer

It depends on the Redis topology and whether automatic failover was configured. If an individual node went down, requests to it could fail or time out; in a caching scenario, the application usually tolerates this through degraded operation: some keys become unavailable, data has to be read from the primary source, and then cached again. This can increase database load and latency.

If the node was part of a Sentinel or Cluster configuration and a healthy replica was available, it could be promoted to master, but failover takes time, and with asynchronous replication some of the latest writes may be lost. If it was the only node, the cache was unavailable until recovery. That is why timeout handling, bounded retries, metrics, and a fallback path to the data source are important; a cache should not be treated as a reliable store for the only copy of data.