NEW
Also known as: Scale Out
Horizontal scaling adds more instances or nodes to a system to handle increased load and improve availability and throughput.
DESCRIPTION
Horizontal scaling, or scale-out, expands capacity by adding nodes. It enhances resilience and throughput via distribution and redundancy. Stateless services and sharded databases benefit most. Load balancers and consistent hashing help route traffic evenly. It pairs well with autoscaling for dynamic demand. Trade-offs include increased complexity and coordination costs. Proper observability and capacity planning are crucial.
ALTERNATIVE DEFINITIONS
Wikipedia
Horizontal scaling (scaling out) means adding more nodes to a system, such as adding new servers, so that the workload is spread across them.
Defines scaling out by adding nodes and spreading work.
DigitalOcean
Horizontal scaling means adding more machines to your resource pool rather than simply using larger machines.
Contrasts horizontal with vertical scaling clearly.
AWS
Scaling out increases capacity by adding more instances to handle demand and improve availability.
Within the Well-Architected context emphasizes availability.
RELATED TERMS
Autoscaling Scalability Load Balancing Sharding Distributed Systems Elasticity Kubernetes Microservices Cluster
COMPETING TERMS
RELATIONS
- Broader: Scaling
KNOWLEDGE AREAS
Infrastructure Cloud Real-time & Streaming Data Software Engineering Data Storage & Operations
TARGET AUDIENCE
Cloud Architect DevOps Engineer Software Developer Data Engineer Enterprise Architect Chief Technology Officer
EXTERNAL SOURCES
- Wikipedia - Scalability
- Google Cloud - Guidance on scaling and failover
- Microsoft - Autoscaling best practices
- Kubernetes - Deployments supporting scale-out
TOP QUESTIONS
When should Horizontal Scaling be preferred?
Use it for stateless services and distributed databases. It improves resilience and throughput when single-node upgrades hit limits.
Category: Example
What architectural patterns aid Horizontal Scaling?
Stateless microservices, sharding, partitioning, and idempotent operations. Use load balancers and service meshes to distribute traffic.
Category: Requirements
What are common pitfalls in Horizontal Scaling?
Stateful coupling, inconsistent hashing, and noisy neighbors. Poor observability complicates capacity management and incident response.
Category: Mistakes
How does Horizontal Scaling impact availability?
More nodes reduce single points of failure. Combined with multi-zone deployments, it strengthens resilience and failover.
Category: Relevancy
Is Horizontal Scaling more cost-effective than Vertical Scaling?
It can be, especially using commodity instances. But coordination overhead and data distribution costs must be considered.
Category: Opinion
How does autoscaling complement Horizontal Scaling?
Autoscaling adjusts node count dynamically based on policies, matching demand while maintaining SLIs and cost efficiency.
Category: Overview
What telemetry is vital for Horizontal Scaling?
Request rate, latency, error rate, CPU/memory, and saturation. Use SLOs and alerts to guide scaling decisions.
Category: Testing
How does Horizontal Scaling affect data consistency?
Distributed writes may increase complexity. Employ partitioning, consensus protocols, or eventual consistency where appropriate.
Category: Risk
What’s a real-world example of Horizontal Scaling?
A web tier adding nodes behind a load balancer to handle peak traffic spikes during product launches.
Category: Example