Eli5: layer 4 and layer 7 load balancing

114 viewsEngineeringOther

what exactly is layer 4 and layer 7 load balancing

In: Engineering

Anonymous 0 Comments

If the TCP connection request hits the load balancer but isn’t terminated there, instead it’s routed to one of a number of servers that are bound to the requested IP address, then that’s layer 4 – the load balancing occurs at the transport layer

If the load balancer terminates the connection and then forwards the payload – eg a http request – to one of a number of servers – then that’s layer 7, the application layer