Active-Active, Half-Broken
Hard · system design problem
Two regions share the traffic. East starts dropping packets to its database — health checks stay green — the evening peak arrives, and then West’s cache restarts. Moving everyone to West is the trap.
DNS splits users evenly between us-east and us-west; each region runs a load balancer, an API (12 instances — the region’s quota), a Redis cache and its replica of a DynamoDB global table (10,000 RCU each). At T+20s the network between East’s API tier and its database degrades: 30% of packets are lost and the rest take 80 ms longer — East’s health checks stay green. At T+90s the evening peak arrives (×1.6 for the rest of the evening). At T+150s a configuration push restarts West’s cache. The run is graded on the whole evening.
Topics
More
Codelays runs in your browser: turn on JavaScript to use it.