The Wayback Machine - https://web.archive.org/web/20261129131234/https://www.geeksforgeeks.org/system-design/what-is-scalability/

Scalability in System Design

Last Updated : 28 Nov, 2026

Scalability refers to a system's ability to handle growing workloads by increasing its resource capacity while maintaining acceptable performance.

  • Resources can be expanded manually or automatically based on demand.
  • A scalable architecture allows individual components to grow without requiring a complete system redesign.

Example: A video streaming platform can add more application servers to handle increased traffic during a live sports event.

Types of Scalability

There are two primary ways to increase system capacity:

  • Vertical Scaling: Increases the CPU, memory, or storage capacity of an existing server. It is limited by hardware capacity and may require downtime.
  • Horizontal Scaling: Adds more servers or instances to distribute workloads. It requires coordination between distributed components.
vertical_and_horizontal_scaling

Architectural approaches such as Microservices and Serverless Architecture also support independent and demand-based scaling.

When to Use Vertical or Horizontal Scaling

Vertical scaling is suitable when a single server can handle growing workloads through hardware upgrades. Horizontal scaling is preferred when hardware limits, availability requirements or increasing workloads require multiple servers.

Key Factors and Techniques for Scalability

System scalability depends on resource management, workload distribution, and efficient data access. The following techniques help reduce performance bottlenecks:

  • Load Balancing: Distributes incoming requests across multiple servers to prevent overload.
  • Caching: Stores frequently accessed data to reduce backend requests and response times.
  • Database Optimization: Uses indexing, replication and sharding to handle growing workloads. Selecting an appropriate shard key helps distribute data evenly and prevent hotspots.
  • Stateless Architecture: Avoids storing client session state on individual servers, allowing any available instance to handle requests.
  • Content Delivery Networks (CDNs): Deliver content from locations closer to users to reduce network latency.
  • Message Queues: Enable asynchronous processing to handle traffic spikes.
  • System Architecture: Uses loosely coupled components to enable independent scaling.

Measuring Scalability

Scalability is evaluated by increasing workloads and observing system performance as resources are added.

  • Throughput: Measures the number of requests processed per second.
  • Latency: Measures the time required to process a request.
  • Resource Utilization: Tracks CPU, memory, storage, and network usage.

Load testing helps evaluate these metrics under different workload levels.

Challenges and Trade-offs in Scalability

Increasing system capacity introduces several operational and technical challenges.

  • Additional infrastructure increases operational and maintenance costs.
  • Distributed components are harder to monitor, debug and maintain.
  • Communication between multiple servers introduces network overhead.
  • Distributed databases may introduce trade-offs between data consistency, availability and latency.
  • Uneven workload distribution can overload specific servers or database partitions.
Comment

Explore