Why Websites Crash Due to High Traffic & How to Prevent It (2024)

Why do websites crash when busy?

Busy websites crash due to a mismatch between traffic levels (too high) and the capacity of the website’s infrastructure (too low).

Site visitors create system requests—adding products to carts, searching for products, inputting passwords—that exceed the processing capacity of your servers and/or any third-party systems involved in the visitor journey.

When this happens, your website will slow down, freeze, or crash.

Simply put: busy websites crash because insufficient resources lead to system overload.

The GIF below explains the concept in its simplest form. Too many site visitors are doing too much on your site for your infrastructure to handle—so it collapses.

Why Websites Crash Due to High Traffic & How to Prevent It (1)

This doing too much point is important. If visitors just sit on a cached home page—like if the marbles in the GIF just sat still—the site is likely to be fine.

It’s the system requests—like the jumping up and down—that bring the site crashing down.

RELATED:

Distribution of traffic is key to avoiding ecommerce site crashes

So, an overabundance of system requests crashes a website. Sounds simple enough, right? But there’s more to traffic-induced crashes than just that.

Not all requests are equal. Some requests are more complex or demanding than others. And the patterns of requests are just as important to understand as quantity.

This is whythinking of site capacity in terms of concurrent users just doesn’t cut it. 10,000 people on your site could crash it, but it could also be fine. It depends what these people are doing.

To explain, we’ll depart from our analogy of jumping marbles and take a trip to the supermarket.

The typical supermarket can hold a few hundred people, so long as they’re spread throughout the store. Let’s say 200. These 200 people meander about choosing their groceries. Some are in the frozen goods aisle, some in produce, others at the deli.

As people finish their shopping, they head to the checkout to bag their groceries and pay. Of the 200 in-store, there’s about 10 people who can be served per minute, and 10 people who enter the store per minute.

This works well. The cashiers serve customers, keep their lines moving, and the supermarket runs smoothly.

But imagine if all 200 shoppers rushed to the checkout counter at the same time. The number of shoppers in the store hasn’t changed. But suddenly the cashiers are overwhelmed. It’ll take them 20 minutes to clear out the 200-strong line.

Now, what if the number of people in store changes too? Imagine a sudden stampede of 800 new customers.

Everything’s been thrown off balance. The lines grow longer and longer. The store becomes overcrowded. Customers are frustrated and staff don’t know what to do.

Why Websites Crash Due to High Traffic & How to Prevent It (2)

This supermarket is a lot like an ecommerce site. Your site and its pages are like the aisles of the supermarket—people move around, browse, read product information. These are simple requests your site can probably handle.

But as customers on your site add items to their cart and go to check out, the requests get more complicated and demanding.

Your database must check inventory, verify their password as they login, call on a third-party plug-in as they type in their address, check their card details with your payment provider as they pay, send out confirmation emails, forward information to the warehouse, and more.

These more demanding requests are like the more demanding requests of the cashiers at the checkout of our supermarket. They need to kindly greet customers, scan and bag every item, field questions, and give out receipts. They can only do this with one customer at a time.

Both the cashiers at the supermarket and the complex requests on your site are what’s called a bottleneck. Bottlenecks are points of congestion in systems that slow or stop progress.

Bottlenecks are points of congestion in systems that slow or stop progress.

Like the mad rush of people in and out of the supermarket, high online traffic puts pressure on your site’s bottlenecks. And it’s these weak links, these points of congestion, that serve as limiting factors on website capacity.

Common ecommerce bottlenecks include:

  • Payment gateways: The capacity of third-party payment providers is often out of your hands and can’t be scaled up.
  • Database calls: Showing dynamic product availability to thousands of customers at once can often means more strain than your system can handle.
  • Performance-intensive features: Features like advanced search, logins, and personalized recommendations are heavy drains on computing power.
  • Synchronous processes: Processing payments, updating databases, lodging the order, sending out confirmation emails—trying to achieve all these in one fell swoop as customers check out can cause major issues.

It’s bottlenecks like these that often cause sites to crash. While these bottlenecks can manage your usual amount of traffic, when traffic suddenly surges, they get overloaded and bring your system down.

You’re only as good as your weakest link. So how much traffic a website can handle comes down to how much traffic its bottlenecks can handle.

RELATED: 2 Hazardous Bottlenecks that can Crash Your Ecommerce Website

That’s why distribution of traffic is key to preventing website crashes due to high traffic. Distribution of traffic avoids overloading points of congestion. It keeps the flow of customers in and out of the site steady and things running smoothly.

What happens when a website crashes?

When a site crashes, it stops serving data to visitors. Your site becomes unresponsive, and visitors are unable to access its content.

Your servers’ job is to “serve” visitors your site’s dynamic content and handle their requests. They provide the computing power to check and update inventory when customers browse products and “add to cart”, and process payments and verify account details when they checkout.

But when your servers fail, customers find an unresponsive site, and leave frustrated.

That’s what happens when a website crashes from the visitors’ perspective. But to understand what’s happening behind-the-scenes, let’s look at a real-world example of a site crash caused by high traffic. (If you’re looking for a technical discussion from a developer’s perspective, check outWebsite failure under load? This is why).

Meghan Markle, the duch*ess of Sussex, has a knack for causing websites to fail. It’s known as the Meghan Effect.

Why Websites Crash Due to High Traffic & How to Prevent It (3)

Markle has a devoted group of followers who pay close attention to everything she wears. Her fashion choices crashed an online retailer’s site notonce, not twice, but three times

Let’s look at a customer journey to uncover just some of the behind-the-scenes legwork the site’s database is doing.

Step NrEnd-user actionRequest(s)

1

Sees Tweet about dress, clicks on link to home page

Loads images and browser script

2

Types name of dress into search bar

Complex search function must find all items that match search term(s), accounting for misspellings, product categories and features, etc.

3

Browses list of products from search and clicks the dress

Loads images and browser script. Shows up-to-date inventory (size, color) information.

4

Adds dress to cart

Inventory system must update to avoid overpurchasing and stay fully in sync for all other users

5

Proceeds to purchase by creating guest account

Sync dynamically-entered information with membership database

6

Enters shipping information

Send and receive requests from shipping plugins, like address verification and shipping costs calculator

7

Enters payment information

Send dynamically-entered information to payment gateway and await payment confirmation

8

Sees order confirmation

Inventory system updates stock remaining

Each customer finding and purchasing a dress in this scenario creates at least 8 requests of varying levels of intensity. And the Meghan Effect means there are thousands of visitors performing these 8 requests all at once.

What’s more, there are several systems behind-the-scenes processing all these requests—the inventory database, the payment processing system, other third-party plugins.

Why Websites Crash Due to High Traffic & How to Prevent It (4)

Each step in the customer journey adds strain to site infrastructure. Eventually bottlenecks appear where processing power is fully extended, and additional requests cannot be served.

Website visitors experience this failure in the form of a website that slows down and eventually crashes, returning dreaded 503 error pages.

Why Websites Crash Due to High Traffic & How to Prevent It (5)

When overwhelming traffic swamps your infrastructure, the weakest link in the system will set the capacity of the entire system. And the dominoes start to fall.

Website crash due to high traffic examples

There are three main scenarios where high traffic crashes websites and apps.

1. The unexpected traffic spike

The unexpected traffic spike is when traffic surges due to factors out of your control. The Meghan Effect is an example. The retailers were unaware Meghan would step out in their apparel that day, and unaware of the rush it would cause.

These unexpected spikes can also come from a feature on primetime TV, sudden bot traffic, a viral social media post, or an unexpectedly successful marketing campaign.

Unexpected crashes are sometimes called the "Slashdot effect", which stems from the early 2000s when technology news site Slashdot would link to smaller sites, frequently causing them to crash. If a site unexpectedly makes it to the front page of Reddit and crashes due to traffic overload, it's called the "Reddit hug of death".

Why Websites Crash Due to High Traffic & How to Prevent It (6)

Figure 1. Two TV placements on national news saw 819% traffic spikes for Rakuten France.

2. The major sale

Black Friday isn’t just the biggest sales day of the year, it's also the biggest day for web traffic. Traffic on Black Friday in 2022 was on average 3x higher than a normal day.

Major sales days like Black Friday, Cyber Monday, and Singles’ Day, are known drivers of massive traffic for ecommerce sites. Reports show these days can see traffic 30 times higher than a normal day.

But even with planned days like these, where retailers know traffic peaks are coming, predicting the timing and magnitude of online traffic spikes is difficult to nail down.

That’s why over 40 retailers crashed or slowed down because of high traffic during Cyber Five 2021. It’s why the major sale is among the most common causes of traffic-induced site crashes.

Why Websites Crash Due to High Traffic & How to Prevent It (7)

Figure 2. Major Cyber 5 sales for this online retailer saw traffic range from 10k to 180k during the holiday season.

RELATED: Holiday Shopping Statistics 2022: Data From 1.7 Billion Retail Web Visits

3. The product drop or collection release

Product releases are the third common cause of website crashes from high traffic. Common examples include the launch of a new product, sneaker drops, clothing brand collaborations, or limited-edition collectibles.

The hype around these product drops and launches often drive short, intense spikes in traffic.

These sudden spikes are some of the hardest for your site to deal with.

What’s more, product drops often see many visitors access your site early to try get a competitive advantage. These visitors refresh pages continually, and sometimes hit your site with bots. This can lead to a site crash before the sale even begins.

Why Websites Crash Due to High Traffic & How to Prevent It (8)

Figure 3. Traffic during Rapha's product drop ranged from a couple hundred users per minute to almost 2,000

RELATED:

How to prevent website crashes from high traffic

While website crashes are an everyday occurrence, 51% of IT experts consider them avoidable.

Here are a few ways to handle traffic to your website to prevent your website from crashing during big sales.

1. Embrace monitoring

Monitoring isn’t itself a solution to website overload. But the first step to preventing errors is understanding them.And without detailed monitoring, it’s not just your customers that get left in the dark.

A massive 74% of global IT teams rely on proactive monitoring to detect and mitigate outages. LogicMonitor found that IT teams with proactive monitoring endured the fewest outages of all those surveyed.

Proactive monitoring alerts you to failures in real-time and provide insights into your traffic levels and site performance.

But it isn’t just proactive monitoring that helps mitigate downtime. Insights into your application also means that after a crash you can conduct a root cause analysis based on facts, not guesswork. An accurate understanding of the root failure will allow you to optimize your system for the future.

Get your free guide to handling ecommerce traffic peaks

Get my guide

Why Websites Crash Due to High Traffic & How to Prevent It (9)

2. Optimize performance

Database requests and bottlenecks are often the Achilles’ heel of a website. A crucial part of your crash prevention strategy is strengthening and optimizing these weak points. Returning the supermarket analogy, this means adding a self-checkout option, or a “less than 12 items” lane, to keep things moving.

Essentially, you want to identify heavy database requests and limit their number, size, and complexity. There are many ways to build performance into your website. Some tactics include:

  • Use a content distribution network (CDN), which responds to browser requests for your static content, like your home page and product images. This frees up your servers to focus on dynamic content, like your Add to Cart calls and checkout flows.
  • Compress images and upload them at their intended display size. Use lazy loading to load media on demand, rather than all at once. Visitors perceive sites that load this way as faster, even if the actual load times are comparatively slow.
  • Minimize the use of plugins where possible. They can quickly become out of date, andmay not always maintain compatibilitywith your CMS or ecommerce platform.

RELATED: Optimize Your Website Performance with These 11 Expert Tips

3. Run load tests

Failing to prepare is preparing to fail. It may be a cliché, but it’s said for a reason: it’s true.

Most customers who come to Queue-it looking to prevent website crashes have no idea how many concurrent users their site can handle. Or, worse still, they believe their site’s capacity is far more than it actually is. This is one of the mostcommon website capacity mistakes, and there’s a simple tool to understanding this that we point customers to: load testing.

Load testing is a kind of performance testing that involves sending increasing levels of traffic to your site under controlled conditions. The aim is to help you understand how it will perform when real visitors start to hit it in big numbers. Using open-source tools, it can be almost free to run.

RELATED:Everything You Need To Know About Load Testing

Load testing isn’t a one-and-done step, though. It’s a process.

Each test is likely to reveal new bottlenecks that need fixing. Adding or changing code also requires new load testing. And it’s easy to run load tests that miss key bottlenecks by failing to simulate true user behavior

LeMieux, one of our customers, load tested their site ahead of their big Black Friday sale. They determined their site capacity and used a virtual waiting room to control the flow of traffic and keep it below the threshold they’d determined.

But on the morning of their sale, they discovered slowdowns related to bottlenecks on their site search and filter features. The load testing of the site had not simulated true user behavior, focusing on volume of traffic and orders, rather than the resource-intensive dynamic search.

Why Websites Crash Due to High Traffic & How to Prevent It (2024)
Top Articles
Latest Posts
Article information

Author: Kareem Mueller DO

Last Updated:

Views: 6075

Rating: 4.6 / 5 (66 voted)

Reviews: 81% of readers found this page helpful

Author information

Name: Kareem Mueller DO

Birthday: 1997-01-04

Address: Apt. 156 12935 Runolfsdottir Mission, Greenfort, MN 74384-6749

Phone: +16704982844747

Job: Corporate Administration Planner

Hobby: Mountain biking, Jewelry making, Stone skipping, Lacemaking, Knife making, Scrapbooking, Letterboxing

Introduction: My name is Kareem Mueller DO, I am a vivacious, super, thoughtful, excited, handsome, beautiful, combative person who loves writing and wants to share my knowledge and understanding with you.