Horizontal and vertical scalability

Hi people!

Let’s talk a little about systems architecture. Specially about scalability.

First of all: do you know what scalability is? Accordingly to the book “Characteristics of scalability and their impact on performance”, scalability is the “capability of a system, network, or process to handle a growing amount of work, or its potential to be enlarged in order to accommodate that growth“.

I agree partially! I would go further and tell that your system should be able to handle more work and even less work, what could be called a downsize. This concept of scalability is also known as elasticity.

Well, but this is not the point here! 😉

So if I need to scale my application somebody could ask me if would do a Horizontal or a Vertical scale. What should I answer?

 

Horizontal Scalability

Horizontal scalability is when you add another servers in your architecture. Usually for one or more of these reasons:

  1. Distribution: you can use more servers to make your application more distributed. You can do it by splitting it by modules, or by micro services, or by tiers (example: web tier, business tier and data tier);
  2. Clustering: you add more servers to share the work between them;
  3. Load balancing: maybe you already has a distributed application or you already use a cluster, but you want add more servers to not only share the work, but also balance the load between them.

In this type of scalability you can use any type of server “size”, depending on what you need. For some very specific uses you may not need a huge processing, memory or things like this.

Horizontal scalability is type that most fits for elasticity as you may want to add or remove servers depending on your needs.

 

Vertical Scalability

Vertical scalability is when you “grow” your server instead of getting another one. You can grow your server by increasing its:

  1. Memory
  2. Core processing
  3. Video processing
  4. Data processing
  5. Data storing

In this type of scalability you usually will grow your server and rarely would “downsize” it. It fits better on situations where you have a very specific service or task running in one single server and need to improve it.

Also fits to systems that were not built for being distributed, clustered or balanced.

 

Mixing them both

You may want to mix the two types! For example, you use the Horizontal type and add more servers, but one of the server need to be upgraded for better results so you apply the Vertical type on it.

 

So, what do you think? Do you know another ways of scaling applications? Share with me at the comments!

Advertisements

Author: Elder Moraes

My name is Elder Moraes and I am Brazilian. I am passionate for programming languages, specially Java. I've been working on IT market since 1999 and learned a lot of stuff (and maybe some tech things). I am also a husband, father, musician and an addicted reader.

1 thought on “Horizontal and vertical scalability”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s