System Design
20. System Design Case StudiesAnimated
Online Gaming Backend
Real-time game state for many players.
The idea
Game servers run the simulation, matchmaking pairs players, and a lobby service connects them.
Watch it work
Press play, pause, or step through. Some animations have settings you can change.
- client
- gateway / proxy
- service
- cache
- data store
- queue / stream
Players connect to the nearest edge.
- step:
- 1/4
- at:
- Players
1/8
The green dot is a request moving through the system.
Step by step
- 1Players join matchmaking
- 2A game server is allocated
- 3State syncs many times per second
- 4Results are stored
Where it is used
Multiplayer games.
Watch out for
Latency, cheating and region placement.