Skip to content
StackDecode
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.

PlayersEdge gateways (…MatchmakerGame servers (a…Player DB / lea…
  • 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

  1. 1Players join matchmaking
  2. 2A game server is allocated
  3. 3State syncs many times per second
  4. 4Results are stored

Where it is used

Multiplayer games.

Watch out for

Latency, cheating and region placement.

Related