The interview problem
Match players by skill and acceptable latency while queue time grows. Ensure one player cannot be assigned to two games by competing match proposals.
Original practice, not a reported company interview. Scenarios and numbers are illustrative. Interview date: not applicable. Sources retrieved October 1, 2026.
1. Scope and worked approach
Assume authenticated tickets with party membership, region constraints and expiry. Match functions propose candidate groups; an authoritative assignment stage conditionally claims all tickets or rejects the proposal. Relax soft skill preferences as wait time increases but retain explicit hard constraints. Allocate a game server and publish the assignment through a recoverable state machine; distinguish reservation from a player actually joining.
2. Trace the design or derivation
Queue parties → propose compatible group → claim tickets → allocate server → publish assignment
Keep proposal expiry, ticket claim and server allocation as distinct states. An assignment is complete only when clients can discover the same durable match ID. If allocation fails after claims, either release the entire group consistently or retry that match identity; partial release can split a party across two matches.
3. Calculate the example
A ten-player match requires two parties of three and two parties of two to fill exactly ten slots. Selecting the first ten individual players could split a party. If arrivals sustain 200 players/s, the ideal upper bound is 20 full ten-player matches/s before compatibility constraints, cancellations and server capacity.
4. Failure cases and trade-offs
Two proposals may share a ticket. A server allocation timeout can leave a live reserved server; retry by allocation identity. Relaxing latency indiscriminately can produce unusable games. Longer waiting improves the candidate pool but harms abandonment; optimize a declared tradeoff, not only skill similarity.
5. Validation, follow-ups and self-review
Race overlapping proposals, cancel during allocation and reconnect after assignment. Measure wait distribution, join success and match quality by region. Follow-up: what happens to the rest of a party when one member disconnects? Reward atomic ticket claims and explicit relaxation rules.
Sources and related practice
Technical reference: open-match.dev — Matchmaking components and ticket processing; atomic claim policy is the proposed design.
Source publication/update: Not established. Retrieved October 1, 2026. The workflow, calculations and review exercises are original; this reference is not evidence that a company asked this question.
Continue with Allocate released reservations to a waitlist; Design a cross-shard transaction coordinator.
Continue your preparation
Choose a connected learning path or browse more System design questions. Read our editorial method and attribution policy.