← Lessons

quiz vs the machine

Platinum1720

System Design

Regional Server Selection

Choosing the data center that minimizes total latency for a match.

6 min read · advanced · beat Platinum to climb

Latency decides the host

In a real time game, the server location largely determines how each player ping feels. Selecting the right region for a match is a latency optimization across everyone involved, not a single client choice.

Measuring before deciding

  • Clients ping nearby data centers and report a latency map for each candidate region.
  • The matchmaker, when forming a match, evaluates candidate regions and picks the one that minimizes a fairness aware cost, often the maximum latency across players rather than the average.
  • Minimizing the worst case avoids placing one player at a huge disadvantage even if the average looks fine.

Cross region tension

A party spread across continents has no perfect host, so the matchmaker may keep them out of certain regions or accept a higher worst case. Selection also respects capacity: a region must have ready servers, tying this back to orchestration. Some networks route traffic over a private backbone to nearby edge points so latency depends on entry distance, not the public internet.

Key idea

Regional selection uses measured per player latency to pick the data center that minimizes the worst case ping, balanced against capacity and party spread.

Check yourself

Answer to earn rating on the learn ladder.

1. Why minimize the maximum latency rather than the average?

2. How does the system learn each player latency to candidate regions?

3. What else constrains which region can host a match?