What is vertical vs horizontal scaling?

What is vertical vs horizontal scaling?

Approach: Compare adding power to one machine vs adding more machines.

Vertical scaling (scaling up) means adding more power (CPU, RAM) to an existing machine. Horizontal scaling (scaling out) means adding more machines to the resource pool.

Follow-up: Which one is generally more sustainable for massive traffic?

Key concepts: load balancing, hardware upgrades, distributed systems.