DEV Community

Ashish Gajjar for AWS Community Builders

Posted on • Edited on

Classic to Application Load Balancer Migration

Classic Load Balancer:
Classic load balancer(CLB) serves as the single point of contact for the clients in which the instances are added without disrupting the flow of the requests for the application and here the ‘listeners’ check for the connection requests from the client using the protocol and port that we configure.

Application Load Balancer:
Application Load Balancer(ALB) serves as the single point of contact for the clients and distributes the incoming application traffic to multiple targets, which increases the availability of the application. We can add two or more listeners as the listeners check for the connection request from the client using the protocol and port that we configure.

Difference between CLB and ALB:
Classic load balancer is for simple load balancing of traffic in multiple EC2 instances and Application load balancer is for micro services for which we need to route traffic to multiple services across multiple ports on the same EC2 Instance. Application Load Balancer has more services provided than the Classic Load Balancer.

Steps for Migration from CLB to ALB:

  1. Open the AWS Console and go to the load balancers. Image description
  2. create a load balancer Image description
  3. Create a Classic load balancer Image description
  4. Enter a load Balancer Name Image description
  5. Select a Availability zone. Image description
  6. Select security groups and listener. Image description
  7. Verify summary and launch a load balancer. Image description
  8. Classic LB is available
    Image description
    Image description

    Convert a Classic Load Balancer to Application Load Balancer.

  9. Click Launch ALB migration wizard.
    Image description

  10. Migration review option available.
    Image description

  11. Click create
    Image description

  12. Successfully ALB created.
    Image description

  13. verify ALB
    Image description
    Image description

Cost Comparison:

CLB:
Region:US East (N.Virginia)
1.$0.025 per Classic Load Balancer-hour (or partial hour)
2.$0.008 per GB of data processed by a Classic Load Balancer

ALB:
Region:US East (N.Virginia)
1.$0.0225 per Application Load Balancer-hour (or partial hour)
2.$0.008 per LCU-hour (or partial hour)(LCU-Loadbalancer Capacity Units)

The price of CLB is higher than ALB but CLB does not provide support to applications through public IPs, back end server authentication and the ALB can be used to help in complex load balancing by managing the traffics and the price may increase when the process in terms of LCU increases, hence we are going on with the application load balancer and below are the steps to migrate the old classic load balancer to application load balancer.

Ref: https://aws.amazon.com/elasticloadbalancing/pricing/

Top comments (0)