Q8: What is horizontal scaling versus vertical scaling?

Difficulty:EasyTopic:Scalability

Vertical scaling increases the resources of one machine, such as CPU or RAM. It is simple but has hardware limits and may preserve a single point of failure. Horizontal scaling adds more machines or instances and distributes work among them. It improves capacity and fault tolerance but introduces coordination, partitioning, and distributed-systems complexity.

Key Takeaways
  • Vertical scaling enlarges a node; horizontal scaling adds nodes.
  • Stateless services are generally easier to scale horizontally.