HLDArena
HLD-244·Coordination & IDs
Medium · 1,000 pts

Multiplayer 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.

Relevant practice for

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
Hidden Cases #4–#7 run automatically on Submit
Case 1: Smoke & API ContractInput Workload
Read RPS
2,000 rps
Write RPS
400 rps
Key Distribution
Uniform (Low Skew)
Chaos Fault
None (Healthy Cluster)
Expected Pass CriteriaASSERTIONS
• Tail Latency: p99 ≤ 96 ms
• Availability: ≥ 99.6%
Valid end-to-end Client → Compute → Storage topology