Skip to content
playdsa
Preferences

Make yourself comfortable.

Saved on this browser. Your device’s reduced-motion preference is always respected.

Theme
Advanced settings

Launch a Multiplayer Arena

Learn
Play
Prove
Problem context and objectives
Mission briefing

Launch-day backend engineer · Neon Rift, a four-player real-time arena

Ship the first global multiplayer match without lag, cheating, or lost results.

Two hundred and fifty thousand players arrive tonight. If clients disagree about one hit, the match feels unfair; if a session dies, players must recover without replaying the whole battle.

How you win

  1. 1Every match has one authoritative source of truth
  2. 2Player input reaches the regional session within the latency budget
  3. 3A dropped player can reconnect from a recent snapshot
  4. 4Final results are stored exactly once

Rules and pressure

  • 250K concurrent players
  • Four players per match
  • Input-to-state p95 below 100 ms
  • Reconnect window: 10 seconds

New words in this mission

Open a term for a plain-language explanation.
p95 latency+

If 100 actions are measured, about 95 finish within this time and the slowest 5 take longer. It exposes lag that an average can hide.

authoritative state+

The one trusted version of the game world. Players can suggest actions, but this source decides what officially happened.

tick rate+

How often the game simulation updates each second. At 20 ticks per second, the server advances the world every 50 milliseconds.

snapshot+

A saved checkpoint of current state. After a crash or reconnect, the system restores this checkpoint instead of rebuilding everything from the beginning.

latency+

The waiting time from starting an action until its result is available. Lower latency makes interactions feel more immediate.

Lesson 1 of 3

Live architecture trace

Launch a Multiplayer Arena: request to outcome

1/7
◉Player deviceclient◇Realtime gatewayedge⬡Matchmakerservice⬡Game sessionservice⇥Result streamqueueDBSnapshot storedataWKRanking workerworker
LIVE EVENTinput command

Player device sends “input command” to Realtime gateway. An authoritative session is the anti-cheat and consistency boundary. Clients send intent; the session validates, orders, and applies it to one official state.

players = 250K concurrent

You are launching a real-time four-player arena game. Design the path from a player's button press to an authoritative match update, then make reconnects and match results reliable. Follow one real user action through the complete architecture; a component is useful only when you can explain the request, state, or failure it handles.

Help shape PlayDSA

Something confusing, broken, or missing? Leave a quick note without leaving your lesson.

Please leave out passwords, payment details and other private information.

Page included: /

Sign in to save feedback here, or send it with your email app. Your draft stays here while you sign in.

Open email instead