Course contentsShow
← System Design
Lesson 43 of 1,9192. Scaling FoundationsFree lesson

What is Vertical Scaling?

Understanding vertical scaling: adding more CPU, RAM, or storage to a single machine to increase capacity.

What is Vertical Scaling?

You'll learn: How to increase a system's capacity by making a single machine more powerful.

The Core Idea

Vertical scaling, also known as "scaling up," means adding more resources to your existing server to handle increased load. Instead of adding more machines, you upgrade the one you have—more CPU cores, more RAM, faster storage, or better network cards.

Think of it like upgrading your personal computer. When your laptop runs slowly, you might add more RAM or replace the hard drive with an SSD. You're making the same machine more capable, not buying a second laptop.

How It Works in Practice

When your web server starts struggling with traffic:

  • CPU upgrade: 4 cores → 16 cores to handle more concurrent requests
  • Memory upgrade: 8GB RAM → 64GB RAM to cache more data
  • Storage upgrade: HDD → SSD for faster database reads

The application code typically doesn't change. You're just giving it more resources to work with.

When to Use Vertical Scaling

Vertical scaling shines early in your system's life:

  • Your initial design phase (remember "Start Simple"!)
  • When you hit resource bottlenecks but architecture is sound
  • Before you have the complexity budget for distributed systems
  • When your workload fits on increasingly powerful machines

The Natural Limit

Eventually, you'll hit a ceiling. The most powerful single machine available can only be so big, and at extreme sizes, hardware becomes exponentially expensive. That's when horizontal scaling (adding more machines) becomes necessary—but we're not there yet in our learning journey!

Key Takeaway: Vertical scaling increases capacity by upgrading a single machine's resources (CPU, RAM, storage), making it the simplest first approach to handling growth before system complexity demands multiple machines.