Celebrity in 15 Seconds
Easy · system design problem
In 15 seconds a celebrity posts and 70% of reads ask for one key. Adding Redis nodes cannot save the node that owns it.
timeline-api serves 98,000 reads/s from a 12-node Redis cluster in front of Cassandra. A celebrity with 90M followers posts at T+15s: from then on 70% of all reads ask for the same key — the post, embedded in millions of different home timelines — and that key lives on one Redis node. Cassandra is sized for cache misses only and cannot take nodes on short notice. You have 15 seconds — whatever you add must be ready and warm when the post goes live.
Topics
More
Codelays runs in your browser: turn on JavaScript to use it.