What Breaks First When Infrastructure Scales (Founder Guide)

What Breaks First When Infrastructure Scales

In October 2021, Roblox went offline for 73 hours. Its engineers tried replacing crucial servers with more powerful machines. It didn’t fix the problem. At one point, the platform was struggling even with no players sending traffic to it.

There’s something fascinating about that. You’d expect a busy website to recover when the crowds go away, and you’d expect faster computers to help. But large systems can create problems for themselves. The programs that keep everything connected may become overloaded just trying to communicate with one another.

Roblox’s experience offers a way into a bigger question. What breaks first when infrastructure scales, and why are the answers often so surprising? We’ll explore why adding servers sometimes makes things worse, how software accidentally starts a flood of its own requests, and what it takes to bring a huge platform back online. You don’t need to know how to run a server to follow the story.

The Roblox Outage That Bigger Servers Couldn’t Fix

The engineering account Roblox published after its 2021 outage is unusually detailed. The trouble centered on Consul, software that helped Roblox’s internal services find and communicate with one another. You can think of it as part of the platform’s address book. When that shared system slowed down, services had difficulty finding the systems they depended on.

Engineers initially suspected faulty hardware or too much work for the existing machines. They replaced servers with more powerful ones, but the system remained unhealthy. One attempt to restart the shared infrastructure looked promising until internal services resumed using it. The load returned, and performance deteriorated again. The players weren’t the source of that traffic. The platform’s own services were.

The eventual diagnosis involved two difficult performance problems inside Consul’s implementation, made worse by the way many Roblox services depended on one cluster. Roblox reported that higher-core-count hardware may even have aggravated one form of contention. Turning off a newer streaming feature helped restore performance. Engineers also had to deal with a separate underlying storage issue.

Here’s what makes the Roblox incident worth studying. A seemingly small shared component can determine whether an enormous application keeps working. Bigger computers aren’t a cure when the software is spending its time waiting on an internal bottleneck. A server can be powered on while the work it exists to perform has barely moved.

Why Growth Can Make Change Dangerous

More users often mean more code and more moving parts. A growing website may rely on separate systems for signing in, delivering messages or processing data. That specialization can help with scaling, but it also means a routine software update has more opportunities to interrupt something else.

Growth often shows up in the release process before customers notice trouble. Deployments take longer as engineers work out which services rely on a change. A fix that works on one machine may need extra checks elsewhere, and rolling back gets harder when an update also changes shared data.

The DORA research on software delivery looks at how frequently changes are released and what happens when they fail. As a system grows, making deployments repeatable and reversible becomes part of keeping it reliable. A release process nobody trusts can slow improvement even when the existing application handles today’s traffic.

A strange sign of growth, then, is that software can continue to serve today’s traffic while becoming harder to improve. More capacity doesn’t solve a release process everyone is afraid to touch.

How a Website Can Be Up and Still Be Broken

A website’s health check may ask its server for a simple response. If the response arrives, a monitoring screen turns green. That doesn’t prove a person can sign in, send a message or finish a complicated request. Those actions might depend on another service that is slowing down.

Engineers can follow an individual request through the system using a trace. If most of the time is spent waiting on a database, the trace helps reveal that. You don’t need to know the monitoring software to appreciate the difference between “the server responded” and “the service worked.”

Roblox’s outage exposed another twist. The company reported that some monitoring tools depended on the same infrastructure that was failing. That made diagnosis harder just when the engineers needed reliable information. It’s a memorable reason to question any dashboard that insists everything is fine while the experience on the other side is clearly broken.

Why More Servers Can Make a Website Slower

Adding machines sounds like the obvious response to a busy website. Sometimes it is. If the web servers are all waiting for the same database, the situation changes. Giving the website twice as many servers can mean twice as many callers competing for a database that hasn’t changed.

Databases also have limits on simultaneous connections. Applications commonly use connection pools to reuse connections and control how much work reaches the database. If all connections are occupied, new requests wait. Raising the limit can move the queue into the database itself, where the extra competition may make everything slower.

Even with enough connections available, a database can slow down when one query does too much work or several requests try to update the same records. Adding more web servers can send even more work into that bottleneck.

A website doesn’t have one capacity limit. Its database, application servers and supporting services each have limits of their own. Adding capacity to one component may put more pressure on another, so engineers need to find which part of the system is struggling before deciding what to expand.

When a Website Starts Attacking Itself With Retries

Software sometimes repeats a request while its earlier attempt is still running. When one service takes too long to reply, the caller may assume it failed and send the request again.

Retries help when a problem is brief. Under heavy load, they can make things worse. The original requests may still be running, and each new attempt adds work to a system that’s already falling behind. When several layers repeat the same operation, the result can be a retry storm: traffic grows even though no new visitors arrived.

Google’s engineering chapter on cascading failures explains how this kind of feedback can help spread a failure. Amazon’s Builders’ Library guide describes a useful defense called backoff. Instead of retrying immediately, a caller waits longer after repeated failures. Adding a little randomness to the delay, known as jitter, prevents thousands of callers from trying again at exactly the same moment.

Some work shouldn’t be retried blindly at all. A purchase might have completed even though the confirmation never arrived. Trying again could create a duplicate unless the application can recognize that it’s the same intended operation.

Persistent connections have their own version of this problem. After a server restart, thousands of devices may reconnect together. Our WebSockets at Scale article explores why the return of disconnected clients can be harder to manage than the traffic that came before the interruption.

The Small Component Everyone Depends On

In a large application, an apparently minor internal service can be more important than a powerful public-facing server. Think back to Roblox. Its service-discovery system helped programs find one another. When that shared part stopped working properly, healthy services struggled to communicate, and starting new ones became difficult.

When a shared dependency slows down, every service waiting for it can run into trouble. Requests pile up while healthy servers wait for a database or service directory to respond. Adding more servers may increase the work that the troubled component has to handle.

Good designs don’t assume every supporting service will always be available. A video site may be able to show a page without personalized suggestions, while a payment system must be more careful about reporting a transaction as complete. The application needs to know which work can continue and which must wait for a reliable answer.

When unrelated features fail at the same time, compare what each one is waiting for. They may all depend on the same internal service. Finding that common cause can keep the team from trying to repair several healthy systems.

Why Autoscaling Isn’t a Magic Button

Autoscaling can add application instances as demand rises and reduce them when traffic eases. The difficult part is choosing the signal that tells the system to act.

Many autoscalers watch processor usage, which works well when a shortage of computing power is the problem. If requests are stalled on a slow database or external service, the processor graph may look calm while customers keep waiting.

Kubernetes can scale applications based on processor use or other configured measurements. Its Horizontal Pod Autoscaler documentation explains how those signals work. Yet creating an extra application instance doesn’t make an overloaded shared database faster, and it doesn’t move work away from a broken outside provider.

That’s what makes the Roblox story memorable. More powerful hardware didn’t solve the underlying contention problem. Capacity matters, but it must be added in the part of the system that is genuinely running short of it.

Getting Back Online Can Be Harder Than Staying Online

A recovering platform faces a strange problem. Its caches may be empty, its services may need to rediscover one another, and disconnected users may all try to return. The moment engineers announce that the outage is over can bring a surge that pushes the system into trouble again.

Roblox didn’t reopen the platform to everyone at once after restoring its core services. Its engineering report describes using DNS steering, a way of directing visitors to different destinations, to let groups of players return gradually. Engineers watched the system after each increase. It was a careful recovery rather than a dramatic switch being flipped.

Disaster recovery testing has to examine what happens after services restart, when users return and dependencies begin working together again. Restore important data in a controlled test and measure how long it takes to make the service usable. The existence of a backup file doesn’t prove its contents are intact or that the recovered system can handle the work waiting for it.

For data that matters, teams set targets for how quickly the service must return and how much recent information could be lost. Those targets guide recovery design, but they’re meaningful only after a real test. A system that ran flawlessly for months may still have a recovery problem nobody discovered until it went down.

What Engineers Look For Before a Site Crashes

One lesson from large outages is that “up” and “down” are crude descriptions. A system may still serve most requests while a growing number take far longer than usual, with background work piling up unseen. Engineers watch for these patterns before a complete failure occurs:

  • Slow requests. Does the slowest slice of requests keep getting slower even when the average looks fine?
  • Growing delays. Are queued tasks waiting longer than they used to?
  • Work that shouldn’t exist. Are retries or reconnect attempts growing faster than real demand?
  • Shared bottlenecks. Are unrelated parts of the application all waiting on the same service?

Those warning signs are most useful when they explain what visitors experience. A busy processor may not explain a failed sign-in, but a record showing which service held up the request gives engineers somewhere specific to investigate.

Can You Test a Failure Before It Happens?

There’s a limit to what a successful speed test tells you. A website that handles a large number of requests under ideal conditions may behave very differently when one supporting service becomes slow. The interesting tests deliberately disturb the system while it is busy.

In a controlled test, engineers can slow a nonproduction dependency while requests are running. They can then see whether the application keeps serving useful work or starts repeating failed calls. A small, safe interruption reveals how far the problem can spread.

These experiments are sometimes discussed under the name chaos engineering. The idea is much less dramatic than the name. You learn how software behaves when a piece of the environment stops cooperating, and you do it where the test is authorized and the damage can be contained.

The test earns its time when engineers can explain the failure and show how recovery worked. During the next incident, they have a rehearsed path instead of guessing under pressure.

Why More Complicated Technology Isn’t Always Progress

Some of the worst performance problems survive infrastructure upgrades. Slow database queries follow an application into its new cluster, and poor retry rules can still overwhelm expensive servers. Added complexity may make those failures harder to trace.

Operating the platform is a separate challenge from writing the application. Our DevOps and infrastructure ownership guide discusses the practical work required once a team maintains more of its own systems.

Of course, some workloads benefit from unusual architecture. CMX uses bare metal Kubernetes with Cilium and BGP to operate its infrastructure with direct control over networking. Our article about that architecture goes into the engineering details. The important question is whether a design solves a real constraint well enough to justify everything else the team must now understand.

There’s no prize for the most complicated diagram. A design earns its place when it makes the software more dependable or enables something the simpler version couldn’t do.

One Expensive Query Can Slow a Whole Platform

Database contention can begin with a perfectly ordinary reporting job. When a report scans millions of records, it may compete with live customer requests for the same database resources. The public website can slow down even though visitor traffic hasn’t increased. The team needs to examine the queries running together before assuming more servers will help.

This kind of problem becomes visible only when different activities run together. A query can perform well in isolation but cause trouble during a busy period. Engineers investigate where the database spends time, whether requests are waiting for a free connection and whether a different query plan or index would reduce the work.

Sometimes reporting can run against a separate read replica, a copy of the database used for queries that can tolerate slightly older information. That helps in the right circumstances, though keeping replicas synchronized adds another layer to operate.

The report and the website can each work fine on their own, then slow each other down when they use the same database at once. That’s the conflict worth finding before anybody adds more web servers.

The Strange Art of Letting Less Work In

When an application is overloaded, accepting still more work can make recovery harder. It may be safer to turn away new requests for a while and postpone work that can wait, keeping capacity available for essential requests. As the system recovers, users can return gradually instead of all reconnecting at once.

Roblox’s 2021 outage showed why this matters on a huge scale. Restoring its underlying service was only part of the job. It still had to bring an entire platform back into use without recreating the pressure that had helped destabilize it.

Even a much smaller app can come back online and immediately struggle with everyone trying to sign in at once. The rush after recovery deserves as much planning as the restart itself.

CMX helps teams work through these questions in the applications and infrastructure they rely on. Our DevOps services explain the operational work we can take on, while the technical articles above go further into how the systems behave.