Cutover Night: Migrating the Core
Hard · system design problem
Move all traffic from the legacy core to the new stack tonight. The new stack is cold, its first real traffic exposes a latent bug, the morning starts at T+240s, and the legacy hardware is switched off at T+300s.
A progressive cutover from a legacy core (core-v1 on MySQL, fixed hardware: 16,000 requests/s at most) to the new stack (core-v2, 3 instances so far → Redis → CockroachDB). Nginx splits traffic by weight; today v1 takes everything except a 0.1% canary on v2. The new stack has never served production: its cache is empty and CockroachDB has headroom for warm traffic, not for every read missing at once. At some point under real load, core-v2 will show a latent bug for about a minute (you will see it). At T+240s the morning begins (×1.5); at T+300s the legacy hardware is switched off for good. New core-v2 instances take a minute to boot. The run is graded on the whole night.
Topics
More
Codelays runs in your browser: turn on JavaScript to use it.