Operations · Operations & process management

Scalability testing

Best for Startup to Growth

CONSTRAINTSRESOURCESLOADSCALE

Use it when

A product is about to face more users or data than it has handled, and you need its breaking point and first bottleneck before launch.

Skip it when

  • The product is live with production history and you need to keep capacity ahead of demand. Use Product scalability monitoring.
  • You are still choosing how the system is built, and the limit may sit in its structure. Use Technical architecture framework.
  • The question is whether the business scales through its channels, pricing and market size. Use Business model fit testing.
  • You are taking a piloted innovation to many sites or teams. Use Innovation scaling framework.
  • Tests show the product cannot grow at a cost the model can bear, and you must decide whether to change direction. Use Pivot framework.

What to apply first and what to use instead are listed below.

Approaches

Production-like test environment

Build a copy of production with the same configuration, scaling settings, caching and dependencies, and drive scripted load against it.

  • Pro You can push to failure without touching customers.
  • Con It costs money to build, and it misses some real conditions such as live network behavior and user patterns.

Controlled tests in production

Send test load to the live system off peak, raising it in small steps, with staff on hand and a rollback plan.

  • Pro It shows how real data, networks and third-party services behave under load.
  • Con It can slow or break service for real customers, and it needs spare capacity and safeguards.

Inputs

  • Load targets
    Expected and peak concurrent users, requests per second or data volume at launch and over the next growth horizon, from forecasts and the launch plan.
  • Thresholds
    Response time at a set percentile, error rate and throughput each run must meet, from your service level objectives.
  • Traffic mix
    The share of each user journey or request type, from production logs over several time windows, or from a comparable product before launch.
  • Test environment
    A copy matching production in configuration, scaling settings, caching, network and dependencies, or a scaled-down copy for lower-risk products.
  • Test data
    Realistic data sets with varied payloads and edge cases such as large files and complex queries.
  • Load toolOptional
    Custom code, open-source or commercial software that generates the load.

Steps

  1. Write a target and a pass or fail threshold for each metric, and give each layer, such as the application, database and outside calls, its share of the response time and error budget.
  2. Script the user journeys in the traffic mix with realistic data, keeping real third-party calls where you can.
  3. Run load at expected and peak levels on small capacity first, such as one instance, then on full production-like capacity, and record the baseline.
  4. Raise load in steps past peak until a threshold fails, and record the load at the break, the resource that saturated first and how the system recovers when load drops.
  5. Run spike and long soak tests where the launch risks sudden surges or slow leaks of memory or connections.
  6. Fix or add capacity at the first bottleneck, rerun the same test against the baseline, and name the metric that warns you are nearing the limit.

Output

A scalability test report for one product or release that states the load it handles within thresholds, where it breaks and what was changed.

  • Load targets and thresholds
  • Traffic mix and test data used
  • Environment and its differences from production
  • Baseline results at expected and peak load
  • Load at the breaking point and first saturated resource
  • Behavior under spike and soak, and recovery
  • Fix made and rerun result
  • Early warning metric and alert level

Done when

  • Every metric had a pass or fail threshold before the first run.
  • The test load follows the traffic mix from logs or a named comparable, and covers the whole workload.
  • Load was raised until a threshold failed, and the first saturated resource is named.
  • Each fix was rerun under the same test and compared with the baseline.
  • An early warning metric and alert level are handed to the team that runs the product.

Measure

After launch, compare real peak load and response times with the tested breaking point each week for the first quarter. It is working when the product stays inside thresholds at peak and the early warning metric fires before users notice slowdowns. Rerun the test after each major release and compare with your own baseline.

Hypothetical example

Fernbook, a booking app, expected 4,000 concurrent users when a spa chain launched on it. Thresholds were 95 percent of requests under 400 ms and errors under 1 percent. Logs from one pilot region set the mix at 70 percent browsing, 25 percent booking and 5 percent payment. On a production-like copy the app held 6,500 users, then search slowed as database connections ran out. The team added connection pooling and a read replica and reran the test. The break moved to 11,000 users, now at the payment service. They set an alert at 80 percent of pool use.

Common mistakes

  • Testing a setup that differs from production. Match configuration, scaling and caching, or record each gap in the report.
  • Testing one component on its own. Test the whole workload end to end, including outside services.
  • Stopping a little above expected load. Push until a threshold fails so you know the real margin.
  • Using a narrow set of requests. Build the mix from logs across several time windows.
  • Treating one run as the answer. Rerun after each fix and each major release, against the baseline.

Sources

By company stage

  1. Pre-IdeaNot applicableThere is nothing built to test for load or growth limits.
  2. IdeaNot applicableAn MVP with a handful of customers does not yet need readiness checks for scale.
  3. Early StartupUsefulEarly checks on growth constraints help, but the priority is a repeatable channel and unit economics.
  4. StartupCriticalScaling what works needs a check of growth constraints and performance under load before adding channels.
  5. GrowthCriticalThousands of customers and new regions demand proven readiness for load and resource needs.
  6. ScaleUsefulSystems are mature but new products and markets still need readiness checks.
  7. EnterpriseUsefulScale is largely handled by established teams, with testing applied to new initiatives.

Apply first

Nothing. You can start here.

Use instead

  • Product scalability monitoring

    The product is live with production history and you need to keep capacity ahead of demand. Use Product scalability monitoring.

  • Technical architecture framework

    You are still choosing how the system is built, and the limit may sit in its structure. Use Technical architecture framework.

  • Business model fit testing

    The question is whether the business scales through its channels, pricing and market size. Use Business model fit testing.

  • Innovation scaling framework

    You are taking a piloted innovation to many sites or teams. Use Innovation scaling framework.

  • Pivot framework

    Tests show the product cannot grow at a cost the model can bear, and you must decide whether to change direction. Use Pivot framework.

Recommended resources

No sponsored resources on this framework yet. Sponsored listings would be labelled here, never in search.

Progress is not saved until you have an account. Create a free account