Insights

Will your system handle peak load?

QuestionPerformance and capacity

A system handles peak load when the customer journey that matters still finishes within the limit you set, at the traffic you expect, for as long as the peak lasts. You find this out with a load test that reproduces the expected peak, and a stress test that shows how far beyond it the system breaks. A green server chart or a short spike in a load-testing tool does not answer the question.

01

Why is the peak the riskiest time for a system?

Because the peak is when the business earns the most and when the system meets load it has never seen before. A product launch, Black Friday, a marketing campaign, month-end closing or a tax deadline all concentrate customers into a few hours. A failure during these hours affects more customers than the same failure on a quiet day, and often there is no second chance: when the campaign is over, the customers who could not buy are gone. What an hour of downtime costs shows how to put a figure on this.

Many teams believe they are prepared because a load test was run and the report was green. The problem is that the test often answered a different question from the one the business asked. It used a short spike instead of the real shape of the peak, it tested a path that skipped the real dependencies, or nobody agreed in advance what counts as a pass. The rest of this page shows how to set up a test whose result you can act on.

02

What do you need to agree on before a load test?

Three things, before anyone starts the tool. Together they turn the test into a yes-or-no answer:

  1. The journey. The path the customer must complete, for example checkout, registration or a loan application. Start with one critical journey, not the whole site.
  2. The limit. The outcome you would defend in a review: how long the journey may take and what share of attempts may fail. A limit is written like this: "95% of checkouts finish within 2 seconds, and fewer than 1% fail." If nobody is willing to sign the limit, the test has no pass mark.
  3. The load shape. How many journeys start per minute (the arrival rate), how many are in progress at once (the concurrency), the mix of customer actions, and how long the peak lasts. Before a launch this is a forecast, and it should be labelled as one.

Concurrency is the number of journeys in progress at the same moment. It is not the number of visitors per day. A rough estimate: concurrent journeys ≈ journeys started per minute × minutes one journey takes. This is the honest meaning of "concurrent users": it counts only the customers who are inside the journey, which is the number the test has to reproduce.

The limit is a performance requirement shared by business and IT, not a dashboard colour. Communication in performance engineering describes what happens when the teams never agree how the system should behave under realistic load.

03

Performance test, load test, stress test: what is the difference?

They answer different questions about the same system:

Performance test
The general question: does the journey meet its limit under a stated load? Load tests and stress tests are both kinds of performance test.
Load test
The performance question asked at the peak you expect. Peak load testing is a load test of the busiest period. It answers whether the expected peak is safe.
Stress test
Load pushed past the expected peak until the journey misses its limit, or the system fails in a way you can describe. It shows where and how the system breaks, but on its own it does not prove the expected peak is safe.
Soak test
A load held for many hours to reveal slow failures: memory leaks, growing queues, filling disks. Use it when the real peak lasts for hours. It does not replace the load test.

In practice the names are often used interchangeably, because the same tool, such as k6 or JMeter, can run all of them. So when someone reports that "we ran a load test", ask which question it answered: was the expected peak safe, or where is the break? The name of the test is the question you asked, not the tool you used.

The shape of the load matters as much as its height. A useful load test ramps up gradually, holds a steady state as long as the real peak lasts, and then ramps down. The steady state is the part that resembles the real peak, and that is where you read the result. A short spike reaches the same height but tells you something else: how the system survives a sudden burst, not whether it can serve the peak.

Load profile of a load test compared with a short spike Time Load (journeys per minute) Expected peak Short spike Ramp-up Steady state: as long as the real peak Ramp-down
Figure 1. A load test (blue) ramps up, holds the expected peak as long as the real peak lasts, then ramps down. A short spike (yellow) reaches the same height, but it does not show whether the journey stays inside the limit for the whole peak.

04

How do you read a load test and a stress test together?

The load test tells you whether the expected peak is safe. The stress test tells you how much headroom you have above it, that is, how much more load the journey can take before it misses the limit. You need both, and you need to read them on the same chart: the journey's response time as the load grows.

Response time of the journey as load grows, with the expected peak, the limit and the break point Load test Stress test Load Response time Your limit Expected peak Break point Headroom
Figure 2. Up to the expected peak the response time stays well under the limit: the load test passes. Beyond it the curve bends upwards as a resource fills up, and crosses the limit at the break point. The distance between the expected peak and the break point is the headroom.

Read the chart from left to right:

  • Up to the expected peak the response time is flat and well under the limit. This is what a passing load test looks like.
  • Past the peak the curve bends upwards. Something is filling up: a connection pool, a queue, a database query or an external dependency.
  • At the break point the curve crosses the limit. From here, customers wait too long or fail.
  • The headroom is the distance between the expected peak and the break point. If it is small, a slightly busier peak than forecast is enough to miss the limit.

A small headroom is not yet a reason to buy more capacity. It is a reason to find what filled up at the bend. The cause is often a defect, such as a pool that is too small or a slow query, and more servers will not fix it. See why the application is slow when the servers look fine and when scaling is not the solution.

05

Why is a load-test report on its own not enough?

Because the tool only generates the traffic. k6, JMeter, BlazeMeter, LoadView and similar tools can all run a careful test, but none of them chooses the journey, the limit or the go or no-go decision. When a green report is followed by a failed peak, the cause is usually one of these gaps:

  • A short spike instead of the real peak. No ramp-up and no steady state, so the result says nothing about a peak that lasts for hours.
  • A path that skips the real dependencies. The test ran against a stub instead of the payment or stock service the journey calls in production.
  • Averages instead of a time series. A single average hides the minutes when the journey missed the limit.
  • No agreed limit. A chart without a signed limit is not a pass.
  • A different setup from production. If, for example, the APM agent runs only in production, the test does not include its overhead. See does APM monitoring slow down your application.

The tool runs the traffic. The decision still needs a journey, a limit and a steady state.

06

What should you check before a launch or a seasonal peak?

Use the same production readiness checklist for a launch and for a seasonal peak. Before a launch you have less real evidence, so more of the inputs stay marked as forecasts.

  1. Name one critical journey.
  2. Write the limit in customer terms, and name the person who will defend it.
  3. Write the load shape. Before a launch, use the forecast you would plan staff and stock for, and say that it is a forecast.
  4. Run the load test on a path that includes the dependencies the journey really calls, such as payment, stock or identity services. Ramp up, hold a steady state, ramp down.
  5. Keep the result as a time series, not as a single average.
  6. Run the stress test after the load test has passed, and report it as the break point, not as proof that the peak is safe.

If the product has never met real demand, the open question is whether its foundation holds beyond a demo. See a product that works for a handful of users; Design and build is the offer for that decision. If the service is already live, start from the busiest period you have already seen. See a critical service that slows when the business needs it.

What should you watch during the peak?

The same signals the test used. If production watches different signals, you cannot tell whether the test predicted the peak. Four signals cover most of what matters. The Google SRE book calls them the golden signals (Monitoring distributed systems):

  • Latency: does the journey still finish within the limit?
  • Traffic: is the arrival rate the one you planned for? A quieter peak does not prove the plan; a busier one means you are outside what was tested.
  • Errors: what share of attempts fail, time out, or finish too late to count?
  • Saturation: how full is the scarcest resource, such as a pool, a queue, CPU, memory or a connection limit? Rising saturation is the warning that the break point from the stress test is close.

Some dependencies stay quiet in ordinary traffic and only fail at the peak. To catch them before customers do, something has to call them regularly, for example a synthetic check that runs the journey every minute. The five building blocks of business observability shows how to connect these signals to the business outcome rather than to a green chart.

07

Conclusion

Neither a green dashboard nor a load-test report answers whether your system will handle the peak. The answer is a claim you can only back with evidence: a test that reproduced the expected peak on the journey that matters, measured against a limit agreed in advance, and a stress test that shows how much room is left above it. You can say yes to the peak when four conditions hold:

  1. The journey, the limit and the load shape were agreed before the test, and the limit has an owner.
  2. The load test reproduced the expected peak, with a steady state as long as the real one, on the real dependencies, and the journey stayed within the limit throughout.
  3. The stress test showed where the break point is, and the team knows what fills up there.
  4. The headroom is large enough for the uncertainty in the forecast, and the same signals are watched during the peak as in the test.

If any of these is missing, the honest answer is "we don't know yet". Before a launch, that is a far better answer than a surprise during it. Whether closing the gap is worth the money depends on what a missed peak would cost: compare the spend with what an hour of downtime costs, filled with your own figures.

For a service that is already running, Review and improve assesses how reliable your existing performance tests and their results are, and whether the evidence is solid enough to act on. Walk one journey and its limit through with us.

Insights

Peak load: questions and answers

How much traffic can my website handle?

There is no universal number. Your system can handle the arrival rate at which your critical journey still finishes inside the limit you set, for as long as the peak lasts. A load test at the expected peak tells you whether that rate is safe; a stress test tells you how far above it the journey breaks. A figure taken from another website ignores your journey, your dependencies and your limit.

How many concurrent users can my website handle?

Concurrency means journeys in progress at the same time, not visitors per day. A rough estimate is: concurrent journeys ≈ journeys started per minute × minutes one journey takes. Use this to translate a business forecast into a test parameter. On its own, without the journey and the limit, a concurrency figure says nothing about whether the system is ready.

What is peak load testing?

A load test that reproduces the busy period you expect: the same journeys, at the expected arrival rate and concurrency, held for as long as the real peak lasts. A useful run has a ramp-up, a steady state and a ramp-down. The test passes if the journey stays inside its limit for the whole steady state.

What is the difference between load testing, stress testing and performance testing?

They answer different questions. A performance test asks whether the journey meets its limit under a stated load. A load test asks this at the peak you expect. A stress test pushes past that peak until the journey misses the limit, to show where and how it breaks. The same tool can run all three, so always ask which question a test answered.

How do I read the result of a stress test?

Look for the point where the journey's response time or error rate crosses your limit. The distance between the expected peak and that point is your headroom. Then find out what filled up at the break: a connection pool, a queue, a database query or an external dependency. Only if the break is a real capacity limit, and not a defect, does more hardware help.

What is capacity planning?

Deciding how much headroom you need above the expected peak, and how to get it. It uses a load test of the expected peak, a stress test that shows the break, and an investigation of whether the break is capacity or a defect. Buying more machines before that investigation is a guess.

What belongs on a production readiness checklist?

One named journey. A limit someone will defend. The load shape, with a pre-launch figure marked as a forecast. A load test with a ramp-up, a steady state and a ramp-down, on the dependencies the journey really calls. Results kept as a time series. The signals you will watch during the peak, and the person who decides go or no-go.

What are golden signals?

Four signals to watch on a running service: latency, traffic, errors and saturation. In business terms: how long the journey takes, how many customers arrive, what share of attempts fail, and how full the scarcest resource is. The names come from the Google SRE book. Watch the same four in the test and during the peak.

Does a passing load test mean we are ready to launch?

Only if the test used the journey, the limit and the load shape you will actually have, including the dependencies the journey calls. A pass on a short spike, or on a path that skips a dependency, does not answer the launch question. If you have no real traffic yet, keep the load shape labelled as a forecast.

Do we need a specific load-testing tool?

No. k6, JMeter, BlazeMeter, LoadView and other tools can all generate the traffic. Pick one your team can run again and again. The quality of the result depends on the journey, the limit, the steady state and the metrics you keep, not on the tool.

Discuss your situation

Top