Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does NLB -> ALB actually work ? ALB allows only HTTP, HTTPS, WebSockets and NLB supports only TCP, TLS, UDP

If we need static IP address in AWS for Load balancer then we have to go for Network Loadbalancer forwarding requests to Application Loadbalancer.

Now since ALB only supports HTTP and HTTPS protocols And NLB only supports TCP protocol

How does this communication actually work?

The client like browser will send the request in HTTP or HTTPS. How does this communication happens ?

like image 529
codeaprendiz Avatar asked Oct 23 '25 00:10

codeaprendiz


1 Answers

HTTP/HTTPS runs on top of TCP. If you check Open Systems Interconnection model, HTTP/HTTPS are at the top application layer, whereas TCP is at transport layer.

ALB supports only application layer (HTTP/HTTPS in that case), while NLB works on transport layer (TCP/UDP). Thus NLB can load balance anything above TCP as well. This include HTTP, SSH, FTP and so on.

There is no protocol conversion between TCP and HTTP, as they work on different layers. So everything happens transparently.

like image 96
Marcin Avatar answered Oct 24 '25 15:10

Marcin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!