How load balancers work - System Design Interview knowledge [Beyond the interview]

preview_player
Показать описание
Knowing about how a load balancer works is important for most software engineers. Load balancing algorithms and techniques can be useful for your next system design interview too. Besides that, it quite interesting!

This video covers load balancing algorithms, how Google uses load balancing and traffic routing, a real word load balancing example for a web application, stateful load balancing and consistent hashing for load balancing.

--- SOCIAL MEDIA ---

Music: Koalips
Music: Night Owl - Broke For Free
Music: Bensound
Рекомендации по теме
Комментарии
Автор

You all got it right, network is layer 3 in OSI. My bad! ;)

SuccessinTech
Автор

that purest contend I've ever seen in the Universe

yodude
Автор

I was just asked this question in an interview. Youtube recommended that video just after my interview. I wish I would have seen it before 😬

melihmtl
Автор

3:27 IMHO is incorrect. It's not possible for two servers to run on same port unless the protocol is different. So two HTTP servers cannot bind to same port on a single backend server. The second HTTP server trying to bind to port will get the error - Address already in use.

yuganderkrishansingh
Автор

3:20 "both http servers on same ip and port" ? how is that possible ?

vadymmishchenko
Автор

What is difference berween L4 and L7 if both are routing based on clientIp, just that L4 maintains ip tables and L7 hashes client IP ? So won't both doing same thing eventually ?

sunny-
Автор

Great video! thank you!! - one note though, and pls correct me if I'm wrong, two applications (servers) can listen to the same port at the same server instance as you mentioned 3:20

bzaruk
Автор

Network is layer 3 on OSI model, TCP/IP layer 4 is transport

JoyLong
Автор

Late to the party but this guy is genius!

mohmedishak
Автор

How can two HTTP servers be running on the same backend on the same port 80 ? check out at time 3:15

MrMukulj
Автор

12:20 You say the hash function depends on the available servers. What if the same users connects again, but the available servers have changed? Will the user now be hashed to a new server, despite his originally assigned server maybe still being available.

Edit: solved later on in the video.

Sandermatt
Автор

How to avoid single point failures? Replica with a master and slave model?

jacob
Автор

Network is level 3? If I am not wrong ?

diehardspidey
Автор

Can you please make a similar video but for DNS?

hahmadzai
Автор

Could you give hint on how spof is handled for lb?

stoneshou
Автор

Great intro. Please make a video on how database work internally. How data is stored in database? Which data structures are used ?

uttampankaj
Автор

What do you mean when you say that Front End take an RPC call?
This is confusing

tacowilco
Автор

How to avoid single point failures? I was also wondering what is the solution....

rafiresearchgroup
Автор

Thanks for the video. Right now preparing for the interview. At the end you mention single point failure problem. What would be your suggestion on eliminating it? Just a quick thought is doing LB state backups/replica with a health checks so as soon as it crashes we could restart or quickly switch with a backup.

PetrShypila
Автор

Going into details, how does the load balancer know the number of connections in each individual server? Where will this information be stored? at the balancer or the server itself? only a count of connections, or will they be stored as a queue?

RaviChandraEnaganti