A scalable system keeps its response time, availability and cost per unit of work inside target while the load grows and more resources get added to cope with it.
The target is set against specific load parameters, such as requests per second or the read-to-write ratio, and p95 and p99 latency are usually the pass mark.
Adding nodes doesn’t guarantee more throughput, though. Neil J. Gunther’s Universal Scalability Law (Gunther and Holtman, 2008) models the point where coordination between nodes outweighs the added capacity. Past that point throughput falls.
What Is Software Scalability?

A system that runs well with 100 users tells you very little about 10,000. That’s why the definition leans so hard on growth.
Load is more than user count. It can mean concurrent sessions, requests per second, data volume, or how deep the background job queue gets.
Martin Kleppmann calls these figures load parameters (Designing Data-Intensive Applications, 2017) and points out that the right ones depend on the system. A web server cares about requests per second, a database about the read-to-write ratio. For a cache it’s the hit rate, which is a different kind of number altogether.
Which is why “scalable” on its own doesn’t mean much. A product can handle read traffic fine and stall on writes, so the claim needs a load dimension and a target attached to it.
Scalability sits alongside security and maintainability as a non-functional requirement, so it belongs in the spec as a number, not an adjective.
It’s a separate property from the reliability of the software, too. A service can be dependable under light traffic and still fall over at ten times the load.
Cost belongs in the definition as well. A system that only scales by tripling the bill per request hasn’t scaled in any useful sense.
How Does Scalability Differ From Performance and Elasticity?
Performance is a speed measurement at one load level. Scalability asks whether that speed survives growth. Elasticity is narrower and more mechanical, since it only covers capacity being added and released automatically as demand moves.
Elasticity depends on scalability. The reverse doesn’t hold.
| Property | Question it answers | Who changes capacity | Typical failure |
|---|---|---|---|
| Performance | How fast at this load? | Nobody, load is fixed | Slow queries, heavy code paths |
| Scalability | Does speed hold as load grows? | Engineers, by design and planning | Throughput flatlines at a bottleneck |
| Elasticity | Does capacity follow demand? | Autoscaling rules | Slow reaction, flapping, runaway cost |
A fast system can still be unscalable. A single-threaded service on one node answers quickly at low traffic, then starts queueing requests as soon as arrivals outrun its one worker.
It works the other way too. A stateless API behind a load balancer scales out fine, but if someone adds the servers by hand before every sale, there’s no elasticity to speak of.
NIST lists rapid elasticity among the defining characteristics of cloud computing (SP 800-145, 2011). Autoscalers are how that shows up in practice, and an autoscaler can only add copies of a service that tolerates copies.
Kubernetes makes the mechanics easy to see. The Horizontal Pod Autoscaler compares a live metric, say average CPU utilization, with a target, then sets the replica count to the current count times the ratio of the two, rounded up.
Scale-down is deliberately slow. The default stabilization window is 5 minutes, per the Kubernetes documentation.
That lag stops replicas from flapping, and it’s the reason elasticity doesn’t replace capacity planning.
Vertical and Horizontal Scaling Compared

Vertical scaling means a bigger machine, with more CPU, memory or storage on the same box. Horizontal scaling goes the other direction and spreads the work across more machines.
Most systems end up using both, in a fixed order. Capacity usually goes up vertically first, then horizontally once one machine stops being enough.
Vertical scaling (scale up)
AWS described its U7inh-32tb.480xlarge instance in December 2024 as the largest compute and memory size in its cloud, with 1,920 vCPUs and 32 TiB of memory.
That’s the ceiling of scaling up on that platform as of the announcement. Past it, no budget buys a bigger machine.
Until you get anywhere near that ceiling, scaling up is hard to beat. Most applications need no code changes at all, and since nothing is distributed there’s no data to keep in sync. It’s also just simple to run.
The catch is the hardware limit. A resize usually means a restart, and one machine is still one point of failure no matter how big it is.
Horizontal scaling (scale out)
Scaling out only works for software that tolerates copies of itself.
The Twelve-Factor App methodology spells out the rule. Processes are stateless and share nothing, and anything that has to persist goes into a backing service such as a database.
Sessions kept in process memory are the classic break. Once request routing through a load balancer sends a user’s next request to a different node, that session is gone.
The upside is no hardware ceiling in principle, and losing one node doesn’t take the service down. The price is harder data consistency across nodes plus network overhead. You also get more things to deploy and monitor, which is the part people tend to underestimate.
How to choose between them
I’d start vertical nearly every time. A bigger instance is a configuration change, while horizontal scaling is an architecture change.
Scale out once the largest practical instance is already the bottleneck, or once a single node failing is no longer acceptable. Traffic that spikes enough to force capacity to expand and shrink is the other trigger.
Single-writer relational databases usually stay on one large node the longest, since writes cannot be split without sharding.
For a longer side-by-side on how scaling up and scaling out trade off, that guide goes through cost and downtime in more detail.
How to Measure and Test Software Scalability

Track throughput in requests per second, latency at the 95th and 99th percentiles, error rate and resource utilization. Then raise load in stages until one of them leaves its target. That load is the scalability limit of the current setup.
Metrics to record
Throughput is requests per second completed successfully. Latency should be tracked as p95 and p99, never the average alone. Error rate is failed requests as a share of all requests, and saturation is how full the scarcest resource is, whether that’s CPU, memory, connections or disk.
The same dimensions appear in the golden signals from Google’s SRE book (2016): latency, traffic, errors and saturation.
Averages hide the tail, and tail latency is what users feel. Queueing delay makes up a large share of response time at high percentiles, which is why p99 climbs before the median does.
Kleppmann’s example SLA counts a service as up only when the median response time is under 200 ms and the 99th percentile under 1 s, with 99.9% availability required (Designing Data-Intensive Applications, 2017).
Load test types
Grafana k6, an open-source load testing tool for JavaScript, documents the standard test shapes (k6 v2.3 documentation).
| Test type | Load | Answers |
|---|---|---|
| Smoke | Minimal | Do the script and the system work at all? |
| Average-load | Typical production | Does performance hold at normal traffic? |
| Stress | Above average | What breaks first at the limit? |
| Soak | Average, for hours | Does it stay stable over time? |
Spike tests, which hit the system with a sudden surge and little ramp-up, and breakpoint tests, which keep raising load until the system breaks, round out the set.
The k6 docs also make a point worth keeping. Stress is relative. The same traffic can be a routine day for one product and a breaking point for another, which is the same reason load parameters have to be defined per system.
Pick the workload model on purpose. k6 can hold virtual users constant (closed model) or hold arrival rate constant (open model), and a closed model hides overload because slow responses lower the request rate.
Test procedure
- Set targets: a p99 latency and an error rate at a stated load parameter
- Run a smoke test to confirm the script and the system respond
- Record a baseline at average load
- Ramp load in stages, noting throughput and p99 at each stage
- Find the point where throughput flattens or p99 breaks the target
- Fix the first bottleneck, then repeat from step 3
Apache JMeter, Gatling, k6 and Locust all generate this load, so the choice comes down to which one your team can script and run in a pipeline.
The common failure is testing a smaller environment than production. Results from a staging stack without parity with production do not extrapolate, because the bottleneck moves when data volume and instance sizes change.
What Limits Software Scalability Mathematically?

Throughput stops growing in a straight line because some of every workload runs serially, and because nodes spend time coordinating with each other. Amdahl’s law covers the first part. The Universal Scalability Law adds the second.
In the ideal case, double the resources and you double the throughput. No production system holds that for long.
Amdahl’s law
Amdahl’s law (Gene Amdahl, 1967) caps speedup at 1 divided by the serial fraction, however many processors or nodes are added.
Using the formula as given in Gunther’s arXiv:0808.1431, a workload that is 50% serial tops out at 2x. At 20% serial the ceiling is 5x, and at 10% serial it’s 10x. Those ceilings are only reached with unlimited resources.
In a web stack the serial part is usually a shared resource such as a single database writer. Adding application servers in front of it raises cost without raising throughput.
The law has a known blind spot, which is that it assumes the workload stays the same size. John Gustafson argued in 1988 that real systems grow the workload along with the hardware, and that makes the speedup look far better.
Amdahl’s law tells you how fast one fixed job can finish. Gustafson’s point is about how much more work fits in the same time, and each holds for the question it asks.
For a service handling more users, Gustafson’s framing fits better. A shared database still sets the serial part.
Universal Scalability Law
Neil J. Gunther’s Universal Scalability Law (USL) adds a second penalty to Amdahl’s single one. Gunther and Holtman (2008) show that it contains Amdahl’s law and Gustafson scaling as special cases.
The first penalty is contention, meaning time lost to serialization or queueing for a shared resource, and it puts a ceiling on throughput. The second is coherency, the time spent making copies of data consistent across nodes or caches. That one grows faster than the node count, so throughput can actually fall as nodes are added (Gunther, Web Performance Calendar).
When the coherency term is zero, the USL reduces to Amdahl’s law.
Fit the two coefficients to throughput measured at several load levels in a load test, and the curve shows the node count beyond which adding capacity lowers throughput. Gunther built the model for capacity planning, and the R package usl implements the fit.
Past the peak of that curve, every extra node costs money and removes throughput.
Which Bottlenecks Break Scalability First?

The shared resource that every node must touch breaks first. That’s usually the database, followed by session and cache state, lock waits, connection limits and chains of synchronous calls.
Web and API tiers scale out easily, so the pressure moves to whatever they all share. Each bottleneck has a signature you can spot in load test numbers.
A single database writer shows up as write latency climbing while web-tier CPU stays low. Read replicas do nothing for it, because they only take reads.
Connection limits are sneakier. Requests queue or fail waiting for a connection before any CPU saturates, and PostgreSQL’s max_connections setting defaults to 100 (PostgreSQL documentation).
Raising that limit costs memory, so connection pooling is the usual answer once an application needs more connections than the server handles comfortably. A pooler such as PgBouncer is the common choice.
Moving sessions out of process memory fixes node affinity but creates one dependency every node waits on.
With lock contention, throughput flattens while utilization stays low, because threads wait on each other instead of computing.
Synchronous call chains add latency and a chance of failure at every hop, so tail latency compounds across services.
Low CPU with flat throughput is the signature of contention. One tier pinned at high utilization is a capacity problem, and scaling out that tier fixes it.
Techniques That Scale Software

Each technique removes one bottleneck. Load balancing spreads requests, caching cuts repeat reads, replicas and sharding split database load, queues absorb bursts, and autoscaling adjusts node count to demand.
Picking one without naming the bottleneck first is how teams add Redis to a system that was never read-bound. I’ve watched that happen more than once.
Load balancing
A load balancer is only as good as the interchangeability of the nodes behind it.
NGINX and HAProxy are the usual software choices. NGINX often sits as a reverse proxy in front of the application nodes, handing each request to one of them.
The failure mode is the balancer itself. A single instance is a single point of failure, so production setups run balancers in redundant pairs.
Caching
Redis is the common application cache. It holds hot reads in memory so the database sees fewer queries. A CDN such as Cloudflare does the same job for static assets, serving them from edge locations and taking that traffic off the origin.
Caches fail in two ways: stale data after writes, and a cold cache that sends the full load to the database at once.
Cache hit rate is the number to watch, and it only helps read-heavy traffic. Writes still reach the database.
Replication and sharding
Replicas scale reads. Sharding scales writes and data volume, at a higher price.
| Technique | What it scales | Price paid |
|---|---|---|
| Read replica | Read traffic | Replication lag |
| Sharding | Writes and data volume | Shard key choice, cross-shard queries |
| Connection pooling | Concurrent clients | One more component to run |
PostgreSQL streaming replication feeds standbys that can answer read-only queries. Under asynchronous replication a replica trails the primary, so a user who just wrote data can read stale data from it.
Standbys double as failover targets, which is how a database stays highly available when its primary dies.
MongoDB shows the sharding side. The shard key decides how data spreads, and a ranged key on a monotonically increasing value sends every new insert to one shard (MongoDB manual).
A hashed shard key spreads writes evenly but gives up efficient range queries on that key.
Older guides call a shard key permanent. As of the current MongoDB manual, there are two documented ways to change one, and MongoDB 7.0 added the analyzeShardKey command to test a candidate key before committing to it.
Message queues
A queue decouples producers from consumers, so a traffic spike lengthens the queue instead of crashing the consumer.
Apache Kafka and RabbitMQ are common choices. In Kafka, each partition is read by at most one consumer in a group, so partition count sets the ceiling on consumer parallelism.
Watch consumer lag per partition, which is the queue’s version of saturation. And pick the partition count for the parallelism you’ll need later, because consumers beyond it just sit idle.
Autoscaling
Autoscaling needs bounds first. The Kubernetes Horizontal Pod Autoscaler takes minReplicas and maxReplicas, the floor and the ceiling for scale-out.
The metric has to drop as pod count rises, which suits CPU or requests per pod and rules out totals that do not divide across pods. And the containers need a CPU request, because without one utilization is undefined and the autoscaler takes no action on that metric (Kubernetes documentation).
On plain VMs the equivalents are AWS EC2 Auto Scaling groups and Azure autoscale rules, plus Google Cloud managed instance groups.
How Do Monoliths, Microservices and Serverless Scale?
What separates them is scaling granularity, and the table below shows where each one pays for it.
| Pattern | Scales as | Main cost |
|---|---|---|
| Monolith | One unit | A hot module forces scaling everything |
| Microservices | Per service | Network hops and distributed data |
| Serverless | Per request | Platform concurrency limits, cold starts |
Monolith
One deployable application means one scaling decision. Run more copies behind a load balancer and every module scales together, including the ones that did not need it.
That works fine while load spreads evenly across modules. It breaks down when one hot module pushes the whole application onto bigger or more instances.
Microservices
Netflix’s move to AWS ran from an August 2008 database corruption, which stopped DVD shipping for three days, to the shutdown of its last streaming data center in early January 2016 (Netflix, 2016).
The company rebuilt its systems for the cloud instead of moving them unchanged, and the result is many services that scale independently.
Splitting an application into microservices lets each service scale on its own metric. Docker containers package each service, and Kubernetes runs the replicas.
Every call between services now pays network latency. Data is split across services too, so a read that spans two of them needs coordination. Add more deployments, dashboards and on-call surface, and the overhead is real.
Serverless
AWS Lambda scales each function by up to 1,000 new execution environments every 10 seconds per Region, a per-function rate separate from the account concurrency quota (AWS Lambda documentation).
A spike that outruns that rate has to wait for environments to be created. Running code as serverless functions removes node management, but new environments start cold, which adds latency to the first requests they serve.
Serverless suits bursty, short, stateless work. Long-running, data-heavy pipelines are where the bill climbs.
What Does Scaling Cost, and When Does It Stop Paying Off?
Scaling pays off while cost per request falls or holds flat, and stops paying off when node count grows faster than throughput. Operational overhead and consistency trade-offs grow with every node added.
Cost per unit of load
More nodes lower cost per request only while utilization stays high. Idle capacity is billed the same as busy capacity.
Flexera’s 2026 State of the Cloud report puts estimated wasted cloud spend at 29%, up from 27% and the first rise in five years.
Autoscaling bounds work as a cost control as well as a capacity limit. A maxReplicas value caps the bill during a runaway metric.
Plenty of cost never reaches the cloud invoice. Monitoring and tracing get harder with more moving parts, deployments and rollbacks need coordinating, on-call load grows, and engineers burn time on data consistency.
Consistency versus availability
Scaling out a data store forces a choice between consistency and availability during a network partition.
Gilbert and Lynch proved Brewer’s conjecture in 2002: a networked shared-data system cannot guarantee consistency, availability and partition tolerance at once (ACM SIGACT News).
Asynchronous replicas are the everyday form of that trade. They stay available for reads and accept replication lag, which is eventual consistency.
Payments and inventory counts should lean toward consistency. Feeds and view counters can lean toward availability, since nobody notices a counter that’s a few seconds behind.
When scaling out is the wrong move
Scaling out is the wrong fix whenever the bottleneck isn’t capacity.
Sometimes the slow part is a query or an algorithm, and an index or a rewritten hot path fixes it at no extra cost. If the fitted Universal Scalability Law curve shows the system is already at its peak, more nodes won’t help either. Small workloads often have headroom on one well-sized node. And when the added service boundaries cost more in network and orchestration than they save, splitting further is a net loss.
Prime Video’s video-quality monitoring team moved a distributed design built on AWS Step Functions and Lambda into a single process and cut infrastructure cost by over 90% (Prime Video Tech, 2023).
The team’s own post calls the result a monolith, while commentators say it was a refactor of one service among many. The numbers are not in dispute, the label is.
Stack Overflow’s engineering blog reported nine primary web servers and four SQL servers behind 209 million HTTP requests in a single day in February 2016. Treat those figures as a dated design reference, not a current benchmark.
Until measurement says otherwise, a well-structured monolithic application on right-sized hardware is the cheaper default.
Software Scalability FAQ
What other types of scalability exist besides vertical and horizontal?
Functional, geographic and administrative scalability come up most often.
Functional scalability is about adding features without a rewrite. Geographic scalability keeps latency acceptable as users spread across regions. Administrative scalability covers keeping a system manageable when more teams or organizations share it.
Why does scalability matter to a business?
It decides whether a traffic peak becomes revenue or an outage.
A product launch or a sale pushes load past anything seen in normal weeks. A system with no defined scalability target has no tested answer for that day.
Is scalability testing the same as load testing?
Mostly yes. Scalability testing is load testing run in stages to find where throughput stops growing.
The k6 documentation notes that stress tests are sometimes called scale tests, so the labels overlap in practice.
Which components make up a typical scalable web application?
A stateless API tier behind a load balancer, a shared store for sessions, a cache in front of the database, read replicas for reporting queries and a queue for background jobs.
Each layer scales on its own metric, so a spike in one does not force the others to grow.
Which Bottleneck to Fix Before Adding Capacity
Software scalability work starts with the one resource that saturates first, found by a staged load test, and not with extra servers. The order of fixes matters because each step costs more to undo than the one before it.
Fix the slow query, missing index or uncached read first. Then scale a single node up to its practical limit, and only after that scale out stateless nodes and automate it.
The serial share of the workload decides when to stop. With 10% serial work, speedup tops out at 10x, so neither the 1,920-vCPU instance nor a much larger fleet moves it past that ceiling.
This sequence holds as of November 2026. It changes if a redesign cuts the serial share, or if a platform raises its scaling rate, such as the per-function Lambda limit.
Teams ready to apply it can read how app scaling plays out in a live product.
- PyCharm vs VS Code for Python: Speed, Debugging, Cost - December 1, 2026
- How to Choose a Digital Transformation Consulting Partner - November 30, 2026
- Is Notepad++ Safe? Official Download, Updates, CVEs - November 29, 2026



