AWS Load Balancer – Steps to Create Application Load Balancer
Load Balancer

Introduction

A load balancer receives the clients’ requests and distributes them across the targets in a target group. Load balancing services makes the application highly available architectures in the cloud. In this article, you’ll learn how to deploy Elastic Load Balancers on AWS and Implementing AWS Load Balancing.

Types of Elastic Load Balancer

AWS Elastic Load Balancer are basically of three types:

  • Classic Load Balancer
  • Application Load Balancer
  • Network Load Balancer

Application Load Balancer

An AWS Application Load Balancer (ALB) is a central interface that enables better scalability to connect clients with backend services through HTTP requests. Each Load Balancer might offer multiple HTTP endpoints pointing to one or more infrastructure resources. The Application Load Balancer (ALB) is cost-effective as well as an efficient solution to handle API requests. Following are the features of ALB:

  • ALB Supports high availability.
  • Flexible response to application load at various levels.
  • ALB provide Security, such as certificate management and user authentication.
  • Close monitoring and auditing of applications.
  • It works on the seventh layer of OSI model.
  • ALB supports HTTP, HTTPS, gRPC.

Prerequisites to setup ALB

  • An EC2 Instance in your AWS account.
  • A VPC (Virtual Private Cloud).
  • VPC with at least one public subnet.

Components

  • Load Balancer:
    Load Balancer serves as a point in contact for clients.

  • Listener:
    You can define the rules in the listener or use the default rule for each listener. Listener rules specify condition, target, priority. You can assign multiple rules to a listener.

  • Target Group:
    The target group routes the traffic to the specified registered targets. You can configure a target for multiple target groups. Also, configure health checks on a per target group basis.

Create Load Balancer

  • Step 1:

    Log in to the AWS Console and from the AWS services select the load balancer under EC2 service. From the left panel select Load Balancer and click on Create Load Balancer.

    Select Application load balancer, click on Create.


    On the Load Balancer console, enter the Name of Load Balancer, Scheme select internet-facing or internal, select an IP address type.

    Configure Listener, select load balancer protocol (HTTP or HTTPS), followed by port (80 or 443). 

    Under Availability Zones, select a VPC and associated subnets.

    Under the Tags, enter the key “Name” and value example: “zehncloud-test-lb”. Then click on “Next: Configure Security Settings“.

    Step2:

    Click on “Next: Configure Security groups“.

    Step3:

    Click on “Next: Configure Routingand Target Group.

    Target group

    Enter the name of the target group, and select the Target type, Protocol, Port, and Protocol version. 

    Step4: Register Targets

    Select Instance and Click on Add to register

    Health checks

    Select Protocol and path for the health check.

    Step5:

    Review all the settings which you configured for the load balancer and click on Create.

    To review the Load Balancer working, copy the DNS URL of Load Balancer and open it in the browser.

Related Posts

AWS Security Groups v/s NACLs

AWS Security Groups v/s NACLs

Contents Introduction Security Groups Create a Security Group Network Access Control Lists (NACLs) Security Group and NACL Key Differences Introduction...

Read More