Steps to configure an Application load balancer in AWS
Step 1: Launch the two instances on the AWS management console named Instance A and Instance B. Go to services and select the load balancer. To create AWS free tier account refer to Amazon Web Services (AWS) – Free Tier Account Set up.
Step 2: Click on Create the load balancer.
Step 3: Select Application Load Balancer and click on Create.
Step 4: Here you are required to configure the load balancer. Write the name of the load balancer. Choose the scheme as internet facing.
Step 5: Add at least 2 availability zones. Select us-east-1a and us-east-1b
Step 6: We don’t need to do anything here. Click on Next: Configure Security Groups
Step 7: Select the default security group. Click on Next: Configure Routing
Step 8: Choose the name of the target group to be my target group. Click on Next: Register Targets.
Step 9: Choose instance A and instance B and click on Add to register. Click on Next: Review.
Step 10: Review all the configurations and click on create
Step 11: Congratulations!! You have successfully created a load balancer. Click on close.
Step 12: This highlighted part is the DNS name which when copied in the URL will host the application and will distribute the incoming traffic efficiently between the two instances.
Step 13: This is the listener port 80 which listens to all the incoming requests
Step 14: This is the target group that we have created
Step 15: Now we need to delete the instance. Go to Actions -> Click on Delete.
Step 16: Also don’t forget to terminate the instances.
Elastic Load Balancer in AWS
In simplest terms, cloud computing means storing and accessing the data and programs on remote servers that are hosted on the internet instead of the computer’s hard drive or local server. It is also referred to as Internet-based computing.