3. Design a Distributed Cache
Partition cached data, survive node loss and keep cache misses from overwhelming the source of truth.
ClassicMedium
Start with a template. Work through each step. Ask Coach when you need a second opinion.
Company tags are community-reported. Counts on cards show how many people reported that design.
Partition cached data, survive node loss and keep cache misses from overwhelming the source of truth.
A live TV vote at a million writes a second: spread by key, buffer in Kafka, aggregate the hot counter in two stages, shed what can wait.
An in-memory data store like Redis, from one event loop to Redis Cluster to a durable platform.