Skip to main content

Command Palette

Search for a command to run...

Easy Steps to Create a Reliable Application Load Balancer

Easy-to-Follow Instructions for a Reliable Application Load Balancer

Updated
2 min read
Easy Steps to Create a Reliable Application Load Balancer

Introduction

Load balancing is the method of distributing network traffic equally across a pool of resources that support an application. Modern applications must process millions of users simultaneously and return the correct text, videos, images, and other data to each user in a fast and reliable manner. To handle such high volumes of traffic, most applications have many resource servers with duplicate data between them. A load balancer is a device that sits between the user and the server group and acts as an invisible facilitator, ensuring that all resource servers are used equally.

Steps to create an application load balancer

  1. Open the AWS Management Console and navigate to the EC2 dashboard.

  2. Create an instance and host a website, you can use an EC2 instance with Windows or an EC2 instance with Linux.

    NOTE: While launching the instance, increase the number of instances to the desired amount.

  3. Connect to each of these instances and host the website.

  4. In the left navigation panel, choose Load Balancers under Load Balancing.

  5. Click on Create load balancer.

  6. Under Application Load Balancer click Create.

  7. Give a suitable Load balancer name.

  8. Select the desired Availability Zone under Mappings.

  9. Under Listeners and routing click Create target group. A new tab will open up.

  10. Choose a target type, Instances.

  11. Type a suitable Target group name.

  12. Click Next.

  13. Select the instances with which you want to make a load balancer.

  14. Scroll and click on Include as pending below.

  15. Click Create target group.

  16. Please go ahead and return to the previous tab.

  17. Refresh the default action.

  18. Now select the newly created target group from the drop down.

  19. Scroll and click Create load balancer.

  20. Wait while the status is not Active.

  21. Now copy the DNS Name to access the hosted website.

    The website will be accessed from any of the instances previously created.

    1. To delete the Load balancers, select the load balancer -> Click Actions -> Delete load balancer -> type confirm -> Delete.

    2. To delete the Target group, select the target group -> Click Actions -> Delete -> Click Yes, delete

AWS Training Chronicles: From Novice to Expert

Part 11 of 22

Follow my journey as I learn AWS from scratch, sharing insights, tips, and hands-on experiences along the way.

Up next

Steps to Enable Horizontal Auto Scaling for AWS Web Applications

Simple Steps to Implement Horizontal Auto Scaling for AWS Websites