Horizontal Scaling
- Horizontal scaling is also known as scaling out.
- Horizontal scaling refers to the process of adding more machines to handle the huge incoming traffic.
- Horizontal scaling helps in parallel processing.
- It is like if we want to finish a work early, then we have to increase the manpower.
Vertical Scaling
- Vertical scaling is also known as scaling up.
- Vertical scaling means increasing the power of a machine in the form of RAM, Memory, Processort or Bandwidth.
- Vertical scaling is used to perform resource intensive tasks.
- Vertical scaling is like hiring a more skilled employee to complete the work.
Difference between Horizontal and Vertical Scaling
Horizontal Scaling | Vertical Scaling |
1. It is also known as scaling out. | 1. It is also known as scaling up. |
2. Here we add more machines to our resource pool. | 1. Here we upgrade our old machine with more RAM, Powerful Processor etc. |
3. No single point of failure. | 3. Single point of failure. |
4. It is more costlier to maintain a no. of resources. | 4. It is cheaper than horizontal scaling, as here we only have to maintain a single system. |
5. Difficult to implement. | 5. Easier to implement. |