Elastic load balancer types
In August 2016, AWS launched a new service called ALB. ALB allowed users of the service to direct traffic at the application level.
The old ELB service offering can still be used and it was renamed Classic Load Balancer. As if things were not confusing enough, a third type of ELB was later launched, named the network load balancer. In this section, we will try to understand the differences between all of them and when to use one versus the others.
Classic Load Balancers
A Classic Load Balancer (CLB) can route traffic using the transport layer (Layer 6, TCP/SSL) or the application layer (Layer 7, HTTP/HTTPS). CLBs currently have a requirement where the load balancer needs a fixed relationship between the instance port of the container and the load balancer port. As an example, you can map the load balancer using port 8080
to a container instance using port 3131
and to the CLB using port 4040
. However, you cannot map port 8080
of the CLB to port...