How to make HTTP request to a web server behind a Network Load Balancer (Layer 3)?

652 Views Asked by At

I was just going through some Udemy AWS exam questions. There was a use case where a consumer vpc wants to connect to a service provider VPC via a vpc endpoint service. Therefore, we must use a Network load balancer (layer 3) instead of an Application load balancer (layer 7) in the service provider vpc - see picture.

As you can see, there is a Network Load Balancer with a web server behind. I'm wondering how a consumer can make a HTTP (layer 7) request to a web server that is sitting behind a layer 3 load balancer? Would that HTTP request not being dropped by the Network load balancer?

On the other hand, a TCP (layer 3) request would not provide you a website from a webserver, doesn't it?

Thanks!

Link to Picture - AWS

1

There are 1 best solutions below

2
On

HTTP (layer 7) works on top of TCP (layer 3). So there are no issues for HTTP requests going through NLB.