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:
- Open the AWS Console and go to the load balancers.
- create a load balancer
- Create a Classic load balancer
- Enter a load Balancer Name
- Select a Availability zone.
- Select security groups and listener.
- Verify summary and launch a load balancer.
-
Convert a Classic Load Balancer to Application Load Balancer.
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.
Top comments (0)