Course contentsShow
← Software Engineering
Lesson 1217 of 1,93336. Performance EngineeringFree lesson

Scalability Testing and Limits

Determining system breaking points, identifying scalability bottlenecks, and understanding when vertical vs horizontal scaling is needed.

Scalability Testing and Limits

You'll learn: How to determine when your system will break, where bottlenecks appear under growth, and whether to scale up or out.

What is Scalability Testing?

Scalability testing pushes your system beyond normal operating conditions to discover breaking points—the limits where performance degrades or the system fails entirely. Unlike load testing (which validates expected capacity), scalability testing asks: "How much more can this handle?"

Think of it like stress-testing a bridge: you don't just drive normal traffic across it; you add trucks until you find the maximum safe load and understand which component would fail first.

Finding Breaking Points and Bottlenecks

You systematically increase load—users, requests, data volume—while monitoring all resource utilization metrics. Watch for:

  • CPU saturation (computation limits)
  • Memory exhaustion (heap or connection pools)
  • I/O throughput ceilings (disk or network bandwidth)
  • Database connection limits or query performance collapse
  • Queue backlogs that never drain

The first resource to max out is your primary bottleneck. This tells you exactly what needs attention before scaling further.

Vertical vs Horizontal Scaling

Once you identify limits, you must choose how to scale:

Vertical scaling (scale up): Add more power to existing machines—more CPU, RAM, or faster disks. Simple but hits physical limits and creates single points of failure. Best when your bottleneck is a stateful resource like a database that's hard to distribute.

Horizontal scaling (scale out): Add more machines. Handles unlimited growth but requires your architecture to support distribution—stateless services, load balancing, and data partitioning. Best when your bottleneck is computation or request volume.

Key Takeaway: Scalability testing reveals exactly where and when your system breaks, enabling data-driven decisions about whether to upgrade existing resources or distribute load across more nodes.