What is AWS AutoScaling and Elastic Load Balancer (ELB)

What is AWS AutoScaling and Elastic Load Balancer (ELB)

Know About AWS Auto Scaling with Elastic Load Balancing (ELB)

Published Nov 28, 2023

Amazon EC2 Auto Scaling

The reason for the website's repeated timeouts and failures to load might be because there were more requests than it could handle. This scenario is akin to standing in a lengthy lineup at a coffee shop with just one barista available to accept orders.

Amazon EC2 Auto Scaling enables you to automatically add or remove Amazon EC2 instances in response to changing application demand. By automatically scaling your instances in and out as needed, you can maintain a greater sense of application availability.**Amazon EC2 Auto Scaling has two approaches to scaling

Dynamic scaling responds to changing demand.* Predictive scaling automatically schedules the right number of Amazon EC2 instances based on predicted demand. Since processing power is a programmable resource in the cloud, scalability problems can be approached more creatively. You can deploy new instances to an application as needed and terminate existing ones when no longer required by adding Amazon EC2 Auto Scaling to the application.

Assume you are getting ready to introduce an application on Amazon EC2 instances. Set the minimum number of Amazon EC2 instances to one when determining the size of your Auto Scaling group. This implies that at least one Amazon EC2 instance needs to be operating at all times.

When you create an Auto Scaling group, you can set the minimum number of Amazon EC2 instances. The minimum capacity is the number of Amazon EC2 instances that launch immediately after you have created the Auto Scaling group. In this example, the Auto Scaling group has a minimum capacity of one Amazon EC2 instance.

Next, you can set the desired capacity at two Amazon EC2 instances even though your application needs a minimum of a single Amazon EC2 instance to run.

The maximum capacity is the third option that can be defined in an Auto Scaling group. For instance, you may set up the Auto Scaling group to expand up to four Amazon EC2 instances at most in response to spikes in demand. You only pay for the instances you use, when you use them because Amazon EC2 Auto Scaling makes use of Amazon EC2 instances. Now that you have an economical architecture, you may save costs while still offering the greatest possible client experience.

Elastic Load Balancing

Elastic Load Balancing is the AWS service that automatically distributes incoming application traffic across multiple resources, such as Amazon EC2 instances. For all incoming web traffic to your Auto Scaling group, a load balancer serves as a single point of contact. That implies that these requests go through the load balancer first as you add or remove Amazon EC2 instances based on the volume of incoming traffic. The requests are then distributed among several resources that can process them. For instance, Elastic Load Balancing shares the workload among your several Amazon EC2 instances so that no one instance needs to bear the brunt of it all. Even though Amazon EC2 Auto Scaling and Elastic Load Balancing are two different services, they cooperate to assist make sure that applications operating on Amazon EC2 can offer high availability and performance.

Elastic Load Balancing Low-demand period

This is an illustration of how elastic load balancing functions. Assume that a few clients have arrived at the restaurant and are prepared to put their orders. A small number of open registers indicates that clients are in need of service. It is less probable that the restaurant will have empty registers. The registers in this example can be thought of as Amazon EC2 instances.

Elastic Load Balancing High-demand period

The food store opens extra registers throughout the day to accommodate the growing number of patrons. In order to divide the volume of requests evenly among the open registers, a food shop clerk also leads patrons toward the most suitable register. This worker at the grocery store can be thought of as a load balancer.

I hope you will enjoy it!