Design Per-Experience DataStore Request Quotas That Scale With Players
Last updated: November 29, 2026
Quick Overview
Design a rate limiting system for the Roblox DataStore API where each experience's request budget scales with its number of connected players, enforced across thousands of game servers, with clear errors creators can handle.
Roblox
November 29, 20260
0
0 solved
Design a rate limiting system for the Roblox DataStore API where each experience's request budget scales with its number of connected players, enforced across thousands of game servers, with clear errors creators can handle.
Platform and cloud services teams at Roblox protect shared storage from runaway scripts, but limits must grow with a game's player count so big games are not punished. The interviewer checks distributed rate limiting, dynamic budgets, local versus global enforcement, and creator-facing behavior.
What the Interviewer Expects
- Define the quota formula (base plus per-player allowance) per operation type
- Enforce locally on each game server with token buckets for low latency
- Coordinate a global per-experience budget without a call per request
- Return throttle errors and queue retries with clear semantics
- Provide observability so creators can see usage and throttling
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- How do you prevent one server in an experience from starving others?
- How would you handle a sudden join wave where player count lags?
- Should reads and writes share one budget?
- How would you test the limiter without affecting production games?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
Per experience and per operation type (get, set, list), budget per minute = base + k * players. Enforcement adds under 1 ms. Requests over budget are queued briefly then rejected with a throttle err...
High-Level Design
- Local limiter inside each game server process: a token bucket per operation type, refilled at that server's share of budget. Most decisions are made here with no network call.
- *Quota service...