Distributed cache: where every key lives
One strong interview answer to "build the thing Redis Cluster is": memory sizing to 20 shards, 16,384 fixed hash slots instead of mod N, smart clients with one hop, hot-key defences from a local L1 to split keys, single flight on expiry, and what breaks on failover, split brain, races and cold restarts.
01 · Build the cache
IP-11 · Design a Distributed Cache
"Don't use Redis. Build it.".
A cache in front of everything
Almost every read-heavy system ends up with a cache in front of its database.
0:00 / 15:14