Infrastructure

How to explain vertical and horizontal scaling in the cloud

Share this post:

cloud-scalingIn this world of cloud, one of the biggest features is the ability to scale. There are different ways to accomplish scaling, which is a transformation that enlarges or diminishes. One is vertical scaling and the other is horizontal scaling.

What is the difference between the two? If you look at just the definitions of vertical and horizontal you might see the following:

• Vertical: something that is standing directly upright at a right angle to the flat ground
• Horizontal: something that is parallel to the horizon (the area where the sky seems to meet the earth)

If you are a visual kind of person you may be able to see this. Let’s add some technology to this and see what we get.

Vertical scaling can essentially resize your server with no change to your code. It is the ability to increase the capacity of existing hardware or software by adding resources. Vertical scaling is limited by the fact that you can only get as big as the size of the server.

Horizontal scaling affords the ability to scale wider to deal with traffic. It is the ability to connect multiple hardware or software entities, such as servers, so that they work as a single logical unit. This kind of scale cannot be implemented at a moment’s notice.

So, having said all that, I always like to provide an example that you might be able to visually imagine.

Imagine, if you will, an apartment building that has many rooms and floors where people move in and out all the time. In this apartment building, 200 spaces are available but not all are taken at one time. So, in a sense, the apartment scales vertically as more people come and there are rooms to accommodate them. As long as the 200-space capacity is not exceeded, life is good.

This could even apply to a restaurant. You have seen the signs that tell you how many people could be held in the establishment. As more patrons come in more tables may be set up and more chairs added (scaling vertically). However when capacity is reached no more patrons would be able to fit. You can only be as big as the building and patio of the restaurant. This is much like in your cloud environment, where you could add more hardware to the existing machine (RAM and hard drive space) but you are limited to capacity of your actual machine.

On the horizontal scaling side, imagine a two lane expressway. The expressway is good to handle the 2,000 or so vehicles that travel the expressway. As commerce begins to expand, more buildings are constructed and more homes are built. As a result the expressway that once handled 2,000 or so vehicles is now having an increase to 8,000 vehicles. This makes a major traffic jam during rush hour. To alleviate this problem of traffic jams and an increase in accidents, the expressway can be scaled horizontally by constructing more lanes and quite possibly adding an overpass. In this example the construction will take some time. Much like scaling your cloud horizontally, you add additional machines to your environment (scaling wider). This requires planning and making sure you have resources available as well as making sure your architecture can handle the scalability.

I think this could be a simple way to explain scalability to a customer if they wanted to know the difference between vertical and horizontal scaling in the cloud. What are your thoughts? How have you described scalability? Leave a comment below and let me know.

Staff Software Engineer IBM Commerce

Add Comment
17 Comments

Leave a Reply

Your email address will not be published.Required fields are marked *


Anirudh Sood

nice tutorial in simple words. great one.

Reply

Kanika

Good note and easy to understand. Thanks !

Reply

Mohd Afzal

The best we can get to know about horizontal and vertical scaling.

Reply

Vikas Chauhan

Awesome Explanation.
Best Examples I have ever read.

Reply

Keyur

Very good explanation. Thank you.

Reply

Sharukh

Explanation with examples were really good.Thank You

Reply

Steve Franklin

For a student in networking the is by far the best explanation that I have read. Thank you!

Reply

Akshatha

Thats a simple way of explaining things with real-life examples. Thank you very much, it helps understanding things easily.

Reply

Venugopalaswamy Narla

which scenario we need to use Horizontal and in which scenario we need to use Vertical scaling’s?

Reply

Angélica

Very good explanation!! Thanks a lot!!

Reply

AwaYDiop

Clear and easy to understand! thanks

Reply

Prasad

Great examples for clear understanding of concepts. Thank you!

Reply

Padmaja

Very good explanation in simple words.

Reply

Simran

very well explained.

Reply

Amlesh Rai

Very Nice Explanation. Thank you

Reply

Pranay

Precise explanation thanks

Reply

Sartaj Sisodiya

a BIG concept explained in very Simple WAY. Awesome

Reply
More Infrastructure stories

Accelerate and streamline AI and HPC workloads with new NVIDIA GPUs on IBM Cloud

Each day, data scientists around the world are using artificial intelligence (AI) and high performance computing (HPC) to solve complex challenges and create new business value from data. Whether they are training a chatbot to provide better customer service, creating reservoir simulations for new oil fields or teaching autonomous cars to mind the rules of […]

Continue reading

Connect with IBM Cloud Managed Application Services at Think 2018

Are you ready for something new? On 19 – 22 March, great minds in technologies ranging from blockchain, AI, data and cloud to IT infrastructure, Internet of Things (IoT) and security will come together in Las Vegas to share their knowledge in hundreds of sessions, demonstrations and face-to-face conversations. The event is called Think 2018, […]

Continue reading

10 of the top IBM Cloud news stories of 2017

If you were to boil down the news of 2017 into a single, pithy slogan, you might make it, “Expect the unexpected.” That sentiment was true for IBM Cloud, with exciting new client announcements, big leaps forward in technologies such as containers, and partnerships that continue to drive cloud adoption around the world. Yet all […]

Continue reading