By Ivan Marcin, Senior Technical Director
- Roblox traffic spikes both are unpredictable and, increasingly, occur across multiple games at once. Different peaks stack and overlap, which makes traditional scaling inadequate.
- To help us prepare for these spikes, we’ve built an intelligence-first infrastructure that uses AI and agentic workflows to predict and plan for peaks.
- AI models predict demand so we can pre-warm capacity in the relevant regions. AI agents handle forecasting, workload consolidation, and optimization and report back to engineers.
Managing infrastructure at Roblox is a challenge unlike any other in gaming. Prior to Roblox, the largest gaming event world record was 15.3 million concurrents. Last year, a single Roblox game, “Steal a Brainrot,” reached nearly 26 million concurrents. At peak, 45 million concurrent players were on Roblox—playing multiple different viral games. That particular peak was reached when two viral games launched a special admin abuse war, an example of coordination between creators that we need to be prepared for.
Any game, or several at once, can go from zero to tens of millions of players within hours. To manage these “thundering herd” moments, we’ve built an intelligence-first infrastructure that uses AI-driven demand forecasting, predictive capacity planning, and a fleet of specialized AI agents to autonomously compute orchestration and scale ahead of demand—even when we don’t know exactly when or where they’ll happen.
The Old Playbook Doesn’t Work
Traditional infrastructure plans for expected peaks and throttles when demand exceeds supply. We don’t throttle, because that hurts both our platform and the businesses that creators have built on Roblox. In traditional gaming, peaks follow a predictable path: ramp, peak, drop-off. With millions of games going viral at once, those peaks stack and overlap.
These games all rely on the same shared services, including memory stores, transactional services, and recommendations, so load patterns swing widely. When we scale, we have to scale not just game servers, but every service that supports them.
Many companies react to peaks as they happen, which means capacity doesn’t move until after a spike has been detected. Between detection and added capacity, players may see latency and degraded performance. That may be acceptable for some services, like email or social media. But for 3D immersive games, it’s very noticeable. Imagine a game server that freezes or crashes just as a player lands the final blow or crosses the finish line—frustrating, to say the least.Traditional predictive scalers learn a site’s recurring patterns, so they know the site needs to scale up every Monday. Or that traffic demand will follow patterns based on region and time of day. Roblox does that too, for more predictable busy times like weekends or school holidays in different regions. But we also forecast the extraordinary spikes that don’t repeat on a schedule. Because those spikes aren’t predictable or consistent, Roblox runs a forecasting loop that is continuously tuned, combining forecasting with in-the-moment adjustments. This is how we’ve moved from chasing the peak to a continuous flow model. We’re now able to forecast when, where, and how much capacity will be needed. We can schedule pre-warm capacity ahead of the predicted peak. Then we fine-tune forecasts on a loop and adjust scale-ups to follow the predicted path.
Many companies react to peaks as they happen, which means capacity doesn’t move until after a spike has been detected. Between detection and added capacity, players may see latency and degraded performance. That may be acceptable for some services, like email or social media. But for 3D immersive games, it’s very noticeable. Imagine a game server that freezes or crashes just as a player lands the final blow or crosses the finish line—frustrating, to say the least.
Traditional predictive scalers learn a site’s recurring patterns, so they know the site needs to scale up every Monday. Or that traffic demand will follow patterns based on region and time of day. Roblox does that too, for more predictable busy times like weekends or school holidays in different regions. But we also forecast the extraordinary spikes that don’t repeat on a schedule. Because those spikes aren’t predictable or consistent, Roblox runs a forecasting loop that is continuously tuned, combining forecasting with in-the-moment adjustments.
This is how we’ve moved from chasing the peak to a continuous flow model. We’re now able to forecast when, where, and how much capacity will be needed. We can schedule pre-warm capacity ahead of the predicted peak. Then we fine-tune forecasts on a loop and adjust scale-ups to follow the predicted path.
During a viral event, we are reacting at Roblox, but we’re reacting by adjusting the forecast for the next cycle, not chasing the current one. In-house AI models learn player and load patterns from four kinds of signals:
- What creators tell us about their plans for updates or a celebrity appearance.
- Event signals, such as player RSVPs.
- Player usage metrics, such as whether a game usually peaks on certain days or times.
- Long-run player patterns and engagement trends (event size or sign-up trends, etc.).
With a demand forecast in hand, we decide how to best shift capacity between regions to improve latency, without having to add more data centers. The team tracks forecasts against actual demand week over week using weighted mean absolute percentage error (wMAPE), a measure of forecast accuracy. We use wMAPE as an adjustment buffer: The less accurate recent forecasts have been, the more headroom we build in.
Serving Compute Based on User Experience
On Roblox, players from many countries can all be in the same game at once. Especially when a creator publishes a new update or event—or when two games team up for an admin abuse war. Fixed provisioning isn’t an option in these moments.
In addition to our own data centers, Roblox uses Amazon Web Services (AWS) regional data centers and AWS Local Zones. Players are served from the servers nearest them, but some sites have limited capacity and run out quickly during peaks. To address that, we run heterogeneous stock-keeping units (SKUs), meaning we mix hardware generations, processor architectures, and virtual machine (VM) types. The team accounts for performance and cost differences between them and balances workloads on each cluster accordingly.
Rather than scaling toward a machine count, as traditional scalers do, a set of AI optimizer models probes capacity, user demand, and quality of service (QoS) data. The models indicate not only when to add capacity but how to place it regionally to improve latency and lower compute cost, including which SKU blends to provision based on what’s available at the time. Each week, Roblox ranks regions by the gap between target and available capacity and moves capacity to the regions with the biggest gaps.
Treating Efficiency as an Architectural Choice
Bursting into the cloud is only effective if workloads can run on whatever capacity is available. Moving to heterogeneous SKUs made that possible for game servers. The same flexibility allows Roblox to burst into the cloud for microservices, AI inference, and other services. The payoff for this work is regional latency improvements and increased uptime for players. On average, we’ve seen latency improvements of 15% to 23%.
Our dynamic optimization and resource allocation (DORA) platform is a set of models that sit behind an inference pipeline and work to answer three key questions: How much capacity do we need to hold in each region, and when does that need to be ready? Which machine types and generations can that capacity run on? What is the predicted path of the peak, including when it will spike and drop?
Our agentic infrastructure and harness manages several AI agents that serve different roles. Forecasting agents predict capacity needs and relay them to the team via Slack. Consolidation agents balance workloads for the greatest efficiency. And optimization agents look for additional latency and efficiency gains. These agents run alongside DORA, showing the weekly forecast and demand, summarizing provisioning plans, and monitoring for regressions or increased latency. They can be invoked from Slack, a web interface, or any service, and they post updates in Slack to keep engineers informed. Adding a new agent is as easy as adding one more file, with no new service or deployment required.
How It All Comes Together When Traffic Spikes
First, the forecasting agent publishes the final capacity forecast and predicted peak player total, and each team prepares accordingly. Next, the regression agent replays the update against the current build, comparing join data, HTTP, and Lua code. When the game’s update goes live, capacity is already in place. After the spike, an optimization agent ranks regions against latency targets and flags the biggest opportunities for the next update.
None of these steps wait for a specific day or time. They can run either on a schedule, in response to an event, or when someone asks in Slack. Then the agents run and post an update in Slack once they’ve finished.
The goal hasn’t changed. When millions of players show up at once, the game should run smoothly for them, no matter what else is happening. These intelligent workflows help us prepare earlier, instead of trying to react faster. AI models and agents are used at every layer of the scaling infrastructure. Models optimize plans, and agents run continuous forecasts and adjustments—freeing engineers up to focus on what comes next.
As of November, 2026.











