System Design Atlas

Real-time multiplayer world

01 / 10Worked example

Purpose and system boundary

Who has authority to decide crystal ownership?

Game session W-21 contains crystal G-21, which can be picked up once. Player characters P-21 and P-22 compete for it. Server tick T-600, like every tick, lasts 50 ms, so the simulation runs at 20 ticks/s. A reward of exactly 1 crystal is confirmed only after a durable record exists. The scope is one session with at most 32 players, server-authoritative movement, one-time item pickup, reconnection within the same session and durably confirmed rewards.

Starting point Both clients already show their character at the crystal.

Assumptions for the example case

A fictional example design: one session with at most 32 players, server-authoritative movement, one-time pickup of world items, reconnection within the same session and durably confirmed rewards. Figures and quality goals are illustrative test assumptions. A shared global game world, player trading, paid items and comprehensive fraud detection are outside the scope.

Context and responsibilities

Cooperative session · Server decides, clients display

PlayersSend input
ModerationReviews suspicious inputs

Game world

Join a sessionIdentity + capacity
Change the world together20 ticks/s · Server order
Confirm the result1 durable crystal record
Session operationsCoordinates recovery
Authentication serviceconfirms identity
Spielende → SimulationInput
Simulation → SpielendeSmoothed state snapshot
Anmeldedienst → BeitrittProof of identity

The authoritative process orders inputs and confirms one crystal owner.

Both clients already show their character at the crystal. Let the game server decide ownership: only its position state and input order establish a shared winner.

Assumptions for the worked example

Scope
One session with at most 32 players, server-authoritative movement, one-time pickup of world items, reconnection within the same session and durably confirmed rewards.
Possible extensions
A shared global game world, player trading, paid items and comprehensive fraud detection.

The server decides ownership

The server decides ownership

Let the game server decide ownership.

Both clients already show their character at the crystal.

Only the server’s position state and input order establish a shared winner.

Alternative considered
Client confirmations may contradict each other.
Trade-off
The final reward awaits the server response.
Reassess
The game requires offline progress with later reconciliation.

Terms in this step

The server decides ownership
Only the server’s position state and input order establish a shared winner.

Try it yourself

Both clients show their character at the crystal. Determine which component can promise ownership and what the client display represents.

A hint for your attempt

Use the specific entities and conditions from this step. The two solution parts distinguish the decision from its evidenced outcome.

Compare with a possible solution
First part of the solution
Only the authoritative game process decides ownership of G-21 from server-side position and input order.
Second part of the solution
The client position is a prediction. It may be corrected later and grants no crystal ownership.

Apply to your project

Which corresponding assumption would you test first in your project? Consider this trigger: The game requires offline progress with later reconciliation.

Step 2 examines the distinction between presentation and confirmed outcomes.