Skip to content
Episode 125 - Layer 4 vs Layer 7 Load Balancing episode artwork

EPISODE · Jan 29, 2020 · 37 MIN

Episode 125 - Layer 4 vs Layer 7 Load Balancing

from The Backend Engineering Show with Hussein Nasser · host Hussein Nasser

Load balancing is process of balancing incoming requests to multiple machines, processes or services. In this video we will explain two types of load balancers, layer 4 and layer 7. Layer 4 - haproxy, NLB Pros - great for simple packet-level load balancing - Fast and efficient doesn’t look at the data - More secure as it cant really look at your packets. So if it was compromised no one can look - Uses NAT - One connection between client and server NATed Cons - Can't do smart load balancing based on the content, such as switch request based on the requested media type - Cant do microservices with this type - Has to be sticky as it is a stateful protocol (all segments) Layer 7 (Nginx , haproxy) This type of proxy actually looks at the content and have more context, it knows you are visiting the /users resources so it may forward it to a different server. Essential and Great for microservices , it knows the content is video:image etc..

Episode metadata supplied by the publisher feed · Published Jan 29, 2020

Embed this episode

Ready to play

Episode 125 - Layer 4 vs Layer 7 Load Balancing

0:00 37:32

No transcript for this episode yet

We transcribe on demand. Request one and we'll notify you when it's ready — usually under 10 minutes.

No similar episodes found.

No similar podcasts found.

Frequently Asked Questions

How long is this episode of The Backend Engineering Show with Hussein Nasser?

This episode is 37 minutes long.

When was this The Backend Engineering Show with Hussein Nasser episode published?

This episode was published on January 29, 2020.

Can I download this The Backend Engineering Show with Hussein Nasser episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.
URL copied to clipboard!