Scaling vertically vs Scaling horizontally

Scaling vertically vs Scaling horizontally

Scaling vertically - means that we are upgrading our server's capability so it will perform better.Let's suppose we have t1.micro (1 CPU and 1GB RAM) EC2 instance and running Mysql database on it.If we upgrade server resources (change EC2 instance to m1.large). We would definetly improve overall performance of database. But it costs money and sometimes not necessary.

Scaling horizontally - means that we are adding multiple servers to our infrastructure to increase the performance. Let's suppose we have t1.micro (1 CPU and 1GB RAM) EC2 instance and running web application on it. If we add multiple t1.micro servers with same application and add load-balancer front of it. Overall performance of web application will be better. This kind of scaling is a lot cheaper than vertical scaling since we don't need to invest high-end expensive servers.

These two scaling methods have their own usages. Scaling horizontally of databaese server won't improve performance (don't mind advanced technique such as database sharding at this stage). 




Comments

Popular posts from this blog

Identity Access Management - How to create user in IAM ?!

AWS pricing fundamentals

IAM - Roles