Everything you should know about Scaling: Horizontal, Vertical, and Auto Scaling.

Tejashree Salvi
2 min readJan 19, 2023

--

Scaling: also known as Elasticity (Adding/removing capacity on demand). There are two types of scalability.

One is horizontal and vertical.

Scalability Types: Horizontal and Vertical

Vertical Scalability: Suppose the above small server is a 2GB RAM Server due to heavy traffic, we need to increase the capacity of RAM where the 2GB RAM needs to be upgraded to 8GB. In vertical scaling, the server will be the same just capacity will be increased.

Horizontal Scalability: Suppose, due to heavy traffic, we need to increase the capacity. Instead of increasing the capacity of a single server, we will create four different servers with 2GB RAM each. Hence 2GB+2GB+2GB+2GB = 8GB RAM. In horizontal scaling, we create different servers with the same computational and physical hardware capacity.

Advantages and Disadvantages of Scaling:

Auto Scaling: Scaling servers on-demand.

Use Case:

  • Whenever CPU Load > 70%, scale up to two or more servers.
  • Whenever CPU Load < 30%, scale down by two servers.
AWS: Auto Scaling Group

AWS provides a number of tools and services for scaling your applications, including:

  • EC2 Auto Scaling: automatically adds or removes EC2 instances based on demand
  • EC2 Auto Scaling Groups: manage the desired number of EC2 instances for your application
  • ELB (Elastic Load Balancer): balances incoming traffic across multiple EC2 instances
  • EBS (Elastic Block Store): provides scalable block-level storage for your EC2 instances

AWS supports both horizontal and vertical Scaling.

If you find the blog useful, drizzle some claps to keep me motivated 👏

--

--

Tejashree Salvi
Tejashree Salvi

Written by Tejashree Salvi

Learning DevOps, Blogging, Programming

Responses (1)