HLD-244·Coordination & IDs
Medium · 1,000 ptsMultiplayer Skill-Based MMR / ELO Matchmaking Queue
Design a Valorant / Clash Royale-style competitive matchmaking service that groups solo and party queues by region, latency ping, and expanding MMR skill windows without placing any player into two lobbies simultaneously.
Max p99
≤ 48 ms
Availability
≥ 99.6%
Budget
≤ $7,850
Functional Requirements
- FR-1POST /v1/matchmaking/tickets — Enters a player or party into regional MMR skill buckets with ping constraints.
- FR-2GET /v1/matchmaking/tickets/{ticket_id} — Polls or streams lobby assignment status, match server endpoint, and ready-check state.
- FR-3DELETE /v1/matchmaking/tickets/{ticket_id} — Cancels a queued ticket atomically unless already locked into a formed match.
- FR-4Must guarantee mutually exclusive ticket claiming (zero double-matched players) even during seasonal rank-reset surges.
Workload Profile
Prime-Time Queueing36,000 Ticket Status Read RPS / 6,500 Queue & Claim Write RPS
New Season Launch Rush94,000 Read RPS / 17,500 Write RPS
Active Working Set20 GB live regional MMR bucket trees & active ready-check lobbies
Concurrency GateAtomic CAS ticket claim per region_mmr_bucket + zero duplicate lobby claims
Consistency Model
Strict atomic claim/lock on ticket_id transitions (QUEUED -> MATCHED / CANCELED) so a player never spawns in two matches.
Solutions Locked
Sign in and either achieve AC or complete 3 official submissions on this question to inspect community diagrams and writeups.
Loading solutions...
Submission History (0)Select to replay
No submissions yet
Click Submit in the top bar to evaluate against all 7 judge cases and save each run here.
Click an item in Inventory above, or press B to add a component, double-click to name, C to connect.
Design Write-up
Write under ### Architecture for Diagram to take that up directly
Compulsory section · if not written yet, Diagram reads from the start of your write-up.
Architecture: required·FRs mentioned: 0/4·0 boxes · 0 edges
0 words