1. Home
  2. Blog
  3. Custom Software

Custom Software

What Is Software Scalability? Load Testing, Capacity Planning and Cost Guide

What is software scalability? Vertical and horizontal scaling, bottlenecks, load testing, Little's law, p95, caching and capacity planning, with worked examples.

Contents 13 sections
  1. What Is Scalability in Software?
  2. What Is the Difference Between Vertical and Horizontal Scaling?
  3. How Do You Find the Bottleneck?
  4. How Do You Calculate Concurrent Users with Little's Law?
  5. What Is Load Testing and What Are Its Types?
  6. Why Do Response Time Percentiles (p50, p95) Matter More Than the Average?
  7. How Does Caching Affect Scalability?
  8. How Do You Make a Capacity Plan?
  9. How Do You Calculate the Cost of Scaling?
  10. What Is a Six-Step Plan for Scalability?
  11. What Are Common Scalability Mistakes?
  12. Custom Software Ready for Growing Load with İnovabil
  13. Frequently Asked Questions

Your dealer portal runs smoothly today with 400 dealers. Next year the dealer count will double, and on campaign days order entry will spike within minutes. Will the system carry that load? The answer is software scalability: the ability of a system to keep its speed and correctness as users and data grow. Scalability is not a feature you bolt on later. It is a property you measure and plan for.

In this guide we cover vertical and horizontal scaling, how to find the bottleneck, the three types of load testing, working out concurrent users with Little's law, capacity planning, percentiles such as p50 and p95, the effect of caching, cost, and a six-step plan. Every example uses a dealer portal, and all numbers are illustrative; they are not measurements of a real system or industry averages.

Key takeawayScalability does not mean "add more servers". Turn the target load into numbers first, measure the system and find the first bottleneck, fix only that, and confirm with a load test. The bottleneck is more often the database, or work repeated on every request, than the application server.

What Is Scalability in Software?

Scalability is the ability of a system to grow as load increases while keeping acceptable response time and error rate at a reasonable cost. It has three parts: load (users, requests, data volume), service quality (response time, error rate) and cost.

Being fast is not the same as being scalable. A system that answers in 50 ms for one user may need 5 seconds for 800 users. We covered how architecture choices affect growth in our microservices architecture guide and the question of where to run software in cloud vs on-premise software. This article is separate from both: it is about carrying and measuring growing load.

What Is the Difference Between Vertical and Horizontal Scaling?

Vertical scaling makes the existing server stronger; horizontal scaling adds more servers beside it. Both are used, and the structure of the application decides which fits.

TopicVertical (scale up)Horizontal (scale out)
What you doMore CPU, memory, diskSeveral copies of the same application
Application changeUsually noneSessions and file sharing need review
Upper limitYes; the largest machineVery high in practice
Outage riskSingle point; if it fails, service stopsIf one fails, the rest continue
Cost curveUnit cost rises as you growClose to linear
DatabaseFirst choice; simpleNeeds read replicas and partitioning; hard

In the illustrative example a small server costs ₺12,000 per month and handles 30 requests/sec; a server twice the size costs ₺28,000 and handles only 50 requests/sec. Unit cost per request/sec per month: ₺12,000 ÷ 30 = ₺400 versus ₺28,000 ÷ 50 = ₺560. Scaling up is quick but does not give linear gains. The precondition for scaling out is a stateless application: user sessions should not live in one server's memory, but in a shared place.

How Do You Find the Bottleneck?

The bottleneck is the slowest link in the chain; it sets the capacity of the whole system. Measure first, then grow. Enlarging the wrong link burns money without changing speed.

LinkSymptomTypical fix
Application serverCPU at the ceiling, request queue growingHorizontal scaling, code optimization
DatabaseSlow queries, lock waits, exhausted connectionsIndexes, query fixes, read replicas
No cacheThe same data is read again on every requestCache, result storage
Queues and background jobsWork piles up in a spike, latency growsMessage queue, more workers
External systemThird-party response is slow, timeoutsTimeouts, retries, asynchronous calls

Example: with no cache, each page request runs 4 database queries, and the database can process at most 300 queries/sec. The ceiling is 300 ÷ 4 = 75 requests/sec. If the peak is 80 requests/sec (80 × 4 = 320 queries/sec), the system clogs at the database no matter how strong the application server is. That is why database design matters from the start; we described selection criteria in our guide to choosing a database.

A queue, in turn, smooths the peak. 120 orders per minute arrive for 10 minutes while workers process 60 per minute: backlog = (120 − 60) × 10 = 600 orders. If the arrival rate after the peak is 30 per minute, the queue drains in 600 ÷ (60 − 30) = 20 minutes. The user sees "order received" immediately and processing continues behind the scenes. Event-based flows can be built the same way; see our webhook guide.

How Do You Calculate Concurrent Users with Little's Law?

Little's law gives the average number of items in a system in steady state: N = λ × (R + Z). Here N is concurrent users, λ is requests per second, R is average response time, and Z is the think time before a user's next request. The number of requests the server handles at the same moment, without think time, is λ × R.

Example: at peak, 40 requests/sec, average response 0.5 sec, think time 9.5 sec.

  • Concurrent users: 40 × (0.5 + 9.5) = 400.
  • Requests in flight on the server: 40 × 0.5 = 20.
  • Target in 12 months: if 400 users become 800, then 80 × 10 = 800 concurrent users and 80 × 0.5 = 40 requests in flight.
Capacity calculation: 800 concurrent users, 114 requests/sec required capacity, 5 servers
Capacity calculation: from users to server count.

The law also carries a warning: if response time grows, the number of items inside grows at the same request rate. If the response is 2 sec instead of 0.5, then 80 × 2 = 160 requests wait at once; connection pools fill, the queue grows and the slowdown feeds itself. The law holds for averages and steady state; if load changes quickly the estimate is rough and should be read together with test results.

What Is Load Testing and What Are Its Types?

Load testing pushes the system with realistic traffic and measures response time and error rate. For the general approach to testing, see our software testing guide; performance tests come in three main types.

TypeQuestionHow it is done
Load testDoes it hold the target at expected peak load?Target load (e.g. 80 requests/sec) held steady for 30 minutes
Stress testWhere does it break, and how?Load is raised in steps until it breaks
Endurance (soak) testIs there a memory or connection leak over time?Moderate load (e.g. 60 requests/sec) sustained for hours

In a stress test the stepwise increase reveals the breaking point. The illustrative table below is the result for a single server; let the acceptance criterion be "p95 ≤ 0.8 sec and error rate < 1%".

Load (requests/sec)p95 (sec)Error rateCriterion
100.250%Passed
200.300%Passed
300.700.1%Passed
402.103%Failed
505.8012%Failed

The safe capacity per server is 30 requests/sec; after 40, latency jumps suddenly, which means the system passes a knee point. In an endurance test you watch memory. On a server with 2,000 MB of headroom, growth of 150 MB per hour means memory runs out in 2,000 ÷ 150 ≈ 13.3 hours. An 8-hour test shows 1,200 MB of growth; the trend proves the leak.

To make tests trustworthy: use production-like data volume and environment, imitate real user behavior (a mix of search, orders and reports), and keep real customer data out of the test environment; for details on personal data, consult your legal advisor.

Why Do Response Time Percentiles (p50, p95) Matter More Than the Average?

The average hides slow requests. p50 is the time below which half of requests fall (the median); p95 is the time below which 95% of requests fall. Scalability targets are written for p95 and p99, not the average.

Example: of 100 requests, 90 took 0.2 sec, 8 took 1.0 sec and 2 took 4.0 sec.

  • Average: (90 × 0.2 + 8 × 1.0 + 2 × 4.0) ÷ 100 = 34 ÷ 100 = 0.34 sec.
  • p50: the 50th request in order = 0.2 sec.
  • p95: the 95th request = 1.0 sec.
  • p99: the 99th request = 4.0 sec.

An average of 0.34 sec looks "good", yet one request in twenty waits at least a second. If a page makes 5 separate calls and each call independently has a 95% chance of landing under p95, the chance that the whole page is fast is 0.95⁵ ≈ 77.4% (assuming independence). That means one page in five loads slowly. For how indicators that track such figures are designed, see our KPI guide.

How Does Caching Affect Scalability?

A cache keeps frequently read data in fast memory and reduces trips to the database. It is often the cheapest way to scale: the same servers and the same database serve far more requests.

Illustrative assumptions: reading from cache takes 5 ms, reading from the database 120 ms; each request needs 4 queries, and peak load is 80 requests/sec. Average read time = hit ratio × 5 + (1 − hit ratio) × 120.

Hit ratioAverage readDatabase queries (80 requests/sec)
50%62.5 ms80 × 4 × 0.5 = 160 queries/sec
80%28 ms80 × 4 × 0.2 = 64 queries/sec
90%16.5 ms80 × 4 × 0.1 = 32 queries/sec
95%10.75 ms80 × 4 × 0.05 = 16 queries/sec

When the hit ratio rises from 50% to 90%, read time shortens by 62.5 ÷ 16.5 ≈ 3.8 times and database load falls by 160 ÷ 32 = 5 times. The price of a cache is stale data: when a price or stock level changes, the old value may be shown. Define an expiry time and an update rule for each piece of data up front; for critical fields such as stock and price, use a short expiry or delete-on-change rules. For a multi-user system like a dealer portal, weigh this balance together with the dealer flows in our B2B e-commerce guide.

How Do You Make a Capacity Plan?

A capacity plan multiplies the target load by a safety margin to work out the resources you need. You do not fill a server to 100% at peak; you leave room for sudden spikes, maintenance and a server going down.

  1. Target load: peak of 80 requests/sec in 12 months.
  2. Safety margin: target at most 70% utilization; required capacity = 80 ÷ 0.7 ≈ 114.3 requests/sec.
  3. Server count: 114.3 ÷ 30 ≈ 3.81, so 4 servers.
  4. Spare: +1 so service continues if one fails, 5 servers in total.
  5. Non-linearity check: if scale-out efficiency is 90%, each server gives 27 requests/sec; 4 servers give 108, below 114.3. 5 servers give 135, which is enough.

This calculation means 66.7% utilization for 4 servers at 80 requests/sec (80 ÷ 120). However good the calculation, the truth is the load test; an estimate that has not been confirmed by a test is not capacity. Review the plan every three months based on real growth, not once a year. We described the maintenance and monitoring expectations that keep this work continuous in our maintenance and support agreement guide.

How Do You Calculate the Cost of Scaling?

Each scaling path has a different cost curve. Compare two options by monthly and three-year totals. The figures below are illustrative.

  • Option A (just add resources): 5 application servers × ₺12,000 = ₺60,000; a database sized for 114.3 × 4 ≈ 457 queries/sec at ₺40,000. ₺100,000 per month.
  • Option B (add a cache): 5 application servers ₺60,000; the existing database ₺20,000 (query load 114.3 × 4 × 0.1 ≈ 46 queries/sec, below capacity); a cache server ₺10,000. ₺90,000 per month. Building the cache takes a one-off 8 person-days × ₺9,000 = ₺72,000.
Scaling cost: option A ₺3,600,000 over three years, option B ₺3,312,000, difference ₺288,000
Three-year scaling cost: the option with a cache is cheaper.
ItemOption AOption B
Application servers (5)₺60,000₺60,000
Database₺40,000₺20,000
Cache server—₺10,000
Monthly total₺100,000₺90,000
36 months₺3,600,000₺3,240,000
One-off development—₺72,000
3-year total₺3,600,000₺3,312,000

The difference is ₺288,000, or 8.0% of A. The development cost pays back in 72,000 ÷ 10,000 = 7.2 months. The load test itself, say 6 person-days × ₺9,000 = ₺54,000, is less than one month of infrastructure and is needed in both options. For the overall project budget you can use our software development cost guide.

What Is a Six-Step Plan for Scalability?

Six steps turn guesswork into measurement and turn scaling from a one-off job into an ongoing practice.

Six steps of scalability: target, measure, bottleneck, scale, load test, monitor
The six steps of scalability.
  1. Target: Write down the peak load (requests/sec, concurrent users), the p95 target and the error budget.
  2. Measure: Establish today's capacity and peak load from real data.
  3. Bottleneck: Find the slowest link in the chain and fix only that.
  4. Scale: Cache and query improvements first, then scale out or up.
  5. Load test: Run load, stress and endurance tests above the target load.
  6. Monitor: Track p95, error rate and utilization; review capacity every three months.

On the application side this also requires good code quality; we described how neglected debt can erode capacity in our technical debt guide. For the building blocks on the web side, see what is a web application.

What Are Common Scalability Mistakes?

  • Scaling without measuring: If the bottleneck is in the database, adding servers does not change speed.
  • Looking only at the average: The average can be fine while p95 is bad.
  • Testing without a target: A load test with no acceptance criterion produces a number, not a decision.
  • Building the test environment very differently from production: A test on small data will not catch a query without an index.
  • Ignoring the spare: 100% utilization means an outage when one server goes down.
  • Not thinking about cache freshness: Stale prices and stock cost more than the speed gain.
We recommend reading: What Is Multi-Tenant Architecture? Data Isolation, Cost and Design Guide
We recommend reading: How to Manage Cloud Costs (FinOps): Tagging, Right-Sizing, Commitments and Savings Guide
We recommend reading: What Is a Message Queue and Asynchronous Processing? Producers, Consumers, Retries and Capacity Guide
We recommend reading: How to Improve Database Indexing and Query Performance: An Index, N+1 and Slow Query Guide
We recommend reading: What Is Caching? Layers, TTL, Invalidation, Cache Stampede and Payback Guide
We recommend reading: How to Prevent Double Selling with Concurrency Control: Locking, Optimistic Versioning and Reservations
We recommend reading: How to Prepare an E-Commerce Store for Peak Campaign Season: Demand, Stock, Capacity and Live Control Guide
We recommend reading: What Is Serverless Architecture? Cold Starts, Limits, Break-Even Cost and When It Fits
We recommend reading: WebSockets vs SSE vs Polling: How to Choose Real-Time Updates for a Business App

Custom Software Ready for Growing Load with İnovabil

At İnovabil our focus is building company-specific software from scratch: custom software, ERP, CRM, e-commerce, web, mobile and integration. The analysis and testing steps of our documented process cover scalability expectations as well; if the expected user count, peak load and target response time are written down at the requirements stage, design and testing are done against those targets. We do not give numeric performance commitments; targets are set together on each project.

We have built CRM, purchasing and mobile for Avcılar İnşaat; a purchasing system for İZBAN; logistics and shipment planning with wholesale order management for Karyak; and warehouse management plus a complaint and support management system for Sleepy. Send us a short summary of the user and data growth you expect, and we will write the targets together.

We recommend reading: Our software development process: from analysis to launch, step by step

Frequently Asked Questions

What is scalability, in short?

It is the ability to grow as load increases while keeping response time and error rate, at a reasonable cost. Speed alone is not scalability; a system can be fast for one user and slow for many.

Should I choose vertical or horizontal scaling?

Scaling up is a good start for a quick, simple fix, but it has an upper limit and a single point of failure. If the application is stateless, scaling out suits high load and uninterrupted service better. Many systems use both together.

What is Little's law used for?

It calculates concurrent users from request rate, response time and think time: N = λ × (R + Z). In the example, 40 requests/sec and a 10-second cycle give 400 concurrent users. It holds for averages and steady state; use it together with test results.

How do load, stress and endurance tests differ?

A load test checks whether the target holds at expected peak load. A stress test raises load in steps to find the breaking point. An endurance test sustains moderate load for hours to look for memory and connection leaks.

Does caching always improve scalability?

It brings large gains for read-heavy loads; in the example, raising the hit ratio from 50% to 90% cuts database load 5 times. Its cost is stale data; define an expiry time and an update rule for each piece of data.

Let's talk about your project

Tell us briefly about the software you have in mind; we'll listen and prepare a tailored roadmap and proposal.

Get a quote