Pokémon GO: Fifty Times the Plan
Hard · system design problem
Launch day brings eight times the worst case you planned for. Clients retry three times, one park has every spawn, the world database is write-bound and map tiles melt their API.
Inspired by Pokémon GO’s July 2016 launch, which drew about 50 times the traffic its developers had targeted (and 10 times their worst-case estimate). Here: trainers’ clients (which retry failed calls 3 times) talk to game-api, which reads spawns through a Redis cache (6 small nodes) and writes player state to CockroachDB (8 nodes); map tiles come from tiles-api reading S3. At T+20s the game launches in a new region: trainers ×8 for the rest of the hour, and 40% of spawn reads are for one park.
Topics
More
Codelays runs in your browser: turn on JavaScript to use it.