Partition cached data, survive node loss and keep cache misses from overwhelming the source of truth.
Infrastructure, platform and reliability engineers.
Your approach: Use diagrams or prose to explain responsibilities, state, capacity and failure behavior. Show the calculations requested by the question.
Design a distributed cache for a read-heavy service with a separate durable database. Specify get, set and delete behavior, key ownership, expiry and eviction. Explain how clients find a key during membership changes and how the database is protected when popular entries disappear.
Declare p95 cache-hit server latency in one region.
Required target: ≤ 5 milliseconds
Explain invalidation, expiry and the circumstances under which a stale value may be returned.
Bound concurrent fills and load on the source when nodes or hot keys disappear.
Define cache APIs, namespace isolation and client routing.
Estimate capacity including overhead and any replicas; explain eviction.
Trace node loss and replacement, including misses and any moved keys.
Walk through mass expiry and compare duplicate fills, request coalescing and stale serving.