Web apps & software

What is stress testing?

Stress testing deliberately overloads an application or its infrastructure beyond expected limits to find the breaking point and to check how gracefully it fails and whether it recovers afterward.

Questions it answers

How many simultaneous requests before errors start? Does the app return a clear "busy" message or crash? When load drops, does everything come back by itself, or does someone have to restart servers? Does a failed component corrupt data on its way down?

Typical scenarios

  • Ramp users steadily until response times collapse.
  • Run a sudden spike, such as a promotion email going out.
  • Fill the disk or exhaust memory on a test server.
  • Cut the connection to the database mid-run.

Using the results

Fix the weakest link, add limits that shed excess traffic politely, set alerts below the breaking point and write down the capacity number so everyone knows it. Plan for how you would add capacity during a real surge.

Cautions

Run it in a copy of the environment, not on production, and tell your hosting provider if the test might look like an attack.

Questions, answered

Related but different. Chaos engineering injects specific failures, often in production-like systems, to test resilience.

Before major launches and after big architecture changes, not on every release.

By the Stegnor team · Updated