Netflix: Christmas Eve
Hard · system design problem
On Christmas Eve the primary region’s load balancers lose their state. The other region has half the instances, a cold cache, a small recommendations fleet — and two seconds to take everyone.
Inspired by Christmas Eve 2012, when a maintenance process deleted state from AWS’s load-balancing service in us-east-1 and Netflix streaming was disrupted on many devices for hours — one of the events that pushed Netflix toward active-active multi-region. Here: health-checked DNS sends everyone to us-east. us-west runs a smaller copy: api-west (8 instances), recommendations (3), a Redis cache that has been idle (cold) and its own Cassandra replica. At T+20s us-east’s load balancer loses its state for fifteen minutes. Instances take five minutes to boot. A home screen without personalised rows is acceptable. The run is graded on the whole evening.
Topics
More
Codelays runs in your browser: turn on JavaScript to use it.