Fortnite: 3.4 Million Concurrent
Hard · system design problem
A new season launches: three times the players at once. The profile database runs out of write capacity, the presence service out of connections, and every login hammers the token service.
Inspired by Epic Games’ public postmortem of its February 2018 outages at 3.4 million concurrent players, which described an overloaded account database, a struggling presence (XMPP) service and login storms. Here: game clients call game services (MCP) through the API gateway; MCP validates each session with the auth service and reads and writes player profiles in MongoDB (2 shards). Half of the clients’ traffic is presence updates over the XMPP gateway (300,000 connections per instance). At T+20s the new season launches: players ×3 for the rest of the hour.
Topics
More
Codelays runs in your browser: turn on JavaScript to use it.