Skip to content

Horizontal vs Vertical Scaling

Understand when to scale up vs scale out, design stateless services, and handle session affinity for real-world traffic growth.

15 min readarchitecture, system-design, scaling, infrastructure

Your application is slow. Users are complaining. The database CPU is pegged at 95%. You need more capacity. The question is how to get it.

Scaling is not a single decision — it is a spectrum of choices, each with trade-offs. This lesson gives you a framework for thinking about scaling that goes beyond the textbook definitions.

Vertical Scaling — Scale Up

Vertical scaling means giving a single machine more resources: more CPU, more RAM, more disk I/O, faster network.

Before:                          After:
┌──────────────────┐             ┌──────────────────────────┐
│   Server         │             │   Server (upgraded)       │
│   4 CPU cores    │      ▶      │   32 CPU cores            │
│   16 GB RAM      │             │   256 GB RAM              │
│   500 GB SSD     │  

This lesson is part of the Guild Member curriculum. Plans start at $29/mo.