Design Server Allocation and Matchmaking for Millions of Experiences

Last updated: November 29, 2026

Quick Overview

Design the system that, when a player clicks Play on any Roblox experience, picks or spins up a game server instance in a nearby data center and places the player with friends when possible, across millions of experiences with very spiky popularity.

Roblox
System Design
Software Engineer
Roblox
November 29, 2026
Software Engineer
System Design Round
System Design
Hard

0

0

0 solved


Design the system that, when a player clicks Play on any Roblox experience, picks or spins up a game server instance in a nearby data center and places the player with friends when possible, across millions of experiences with very spiky popularity.

A signature Roblox system design question because every join path depends on it and traffic for a single experience can jump 100x when it trends. The interviewer probes placement logic, capacity management across a global fleet, friend joins, and what happens when a region or the allocator fails.

What the Interviewer Expects
  • Separate matchmaking (which instance) from allocation (which machine)
  • Use per-experience server pools with fill targets and pre-warmed capacity
  • Account for latency, friends, and server fill in placement scoring
  • Handle viral spikes with pre-provisioning and admission control
  • Describe failure handling for crashed servers and allocator outages
Key Topics to Cover
matchmaking
scheduling
capacity planning
bin packing
global load balancing
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
  • How do you keep servers from being half empty while still placing friends together?
  • How would you drain a data center for maintenance without kicking players?
  • How do private servers and reserved servers change the design?
  • What metrics would page an on-call engineer for this system?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements

Functional: join a public server for an experience, join a friend's server, create a new instance when none fit, report occupancy. Non-functional: join decision under 200 ms at p99, millions of concur...

High-Level Design
  1. Join API receives (user, experience, optional target) and asks the Matchmaker.
  2. Matchmaker is sharded by experience ID. It keeps an in-memory index of live instances for that experi...

Submit Your Answer
Markdown supported