How timeouts can make or break your Backend load balancers

  Рет қаралды 7,102

Hussein Nasser

Hussein Nasser

Күн бұрын

Пікірлер: 22
@hnasr
@hnasr 3 жыл бұрын
If you enjoyed this, check out my Introduction to NGINX on udemy grab a discount coupon here www.husseinnasser.com/courses
@Springfielde
@Springfielde 3 жыл бұрын
It's amazing how you understand relations and responsibilities between OSI layers. Great video, thanks!
@sagartyagi2450
@sagartyagi2450 3 жыл бұрын
Can't thank this guy enough. Been following his vidoes lately, and in this one, I was able to figure out almost 85% of the stuff he mentioned about networking aspects without even him mentioning about them. Thanks man🤘, becoming a better engineer.
@DarkKnight-ree
@DarkKnight-ree 3 жыл бұрын
Learned more in the past month from you than my entire career 😅
@BaishaliGhosh13
@BaishaliGhosh13 3 жыл бұрын
There are so many courses explaining backend concepts. I’ve always found a big gap in those when I think of how does this happen at a network level? Thank you for explaining these concepts at a “on the wire” level. It was not easy to understand the nginx documentation but you explain the rationale behind the existence of the different types of timeouts so well. Thank you for the great work you do.
@hnasr
@hnasr 3 жыл бұрын
Thank you!! Nginx doc is not ideal unfortunately it was designed for low level network devs who already understood those concepts..
@saurabhsharma7123
@saurabhsharma7123 3 жыл бұрын
Dude. You explain sooo well. Love from India.
@hnasr
@hnasr 3 жыл бұрын
❤️
@surajitlovetomakefrenz8270
@surajitlovetomakefrenz8270 3 жыл бұрын
@Hussein Nasser- Hussein just to understand something. In the case of a SLOW LORIS attack, where an attacker slows down the packet transfer to the reverse proxy, how does that affect other TCP connections between the reverse proxy and other clients? Does it mean because the reverse proxy is trying to wait for the packets for a single request, it cannot accept requests from other clients during that time period?
@SergeyPopovX
@SergeyPopovX 3 жыл бұрын
Concerning headers timeout, there might be the following reasons to have them. Let's consider the reverse proxy that does routing, rather than load balancing, that is making decisions based on the start of request, where the request will eventually be forwarded to. This decision should be rather quick as it's the bottleneck for the whole infrastructure. Or another example: if authorization is based on headers (cookies and bearer fall in this category), we want kick out strangers as soon as possible, at the same time giving more forgiving timeout for actual users.
@hnasr
@hnasr 3 жыл бұрын
Pretty neat use case thanks for sharing Sergey,
@SergeyPopovX
@SergeyPopovX 3 жыл бұрын
There is also a pretty obvious use case when the payload is a stream that does not suppose to end (WebSockets, Server Sent Events and streaming video content lies in that category). In such scenario the criteria to keep a client connected is client keeping up with the stream (you mentioned from another point of view --- through timeouts). See --- there is another way to bring time into consideration --- a speed. Whenever you may trick timeouts because it's discrete, there is not that much you can do with the requirement for the average upload speed. Also it can be easily computed from bytes uploaded and seconds elapsed.
@kiragod722
@kiragod722 3 жыл бұрын
Me : I am going to learn something new about backends . Learns a new word also .. 🌄🌄🌄🙂🙂 Just wow to hussein nasser
@megazord5696
@megazord5696 3 жыл бұрын
My man! Keep the content coming!
@debjitchattopadhyay599
@debjitchattopadhyay599 3 жыл бұрын
Hey Hussein, what is the timeout that can be configured for upstream service response timeout? Most of the configs I found were between successive packets instead of whole response timeout?
@dineshkinibailoor340
@dineshkinibailoor340 3 жыл бұрын
Could you just make an video about 499 status introduced by nginx? I recently noticed this while loading bulk data on the page and server was taking prolonged period of time to process the data.
@kamleshshete6948
@kamleshshete6948 3 жыл бұрын
Awesome sir 😊😊 keep it up.🙏🙏
@deshkarabhishek
@deshkarabhishek 3 жыл бұрын
105k subs
@antoniopafundi3455
@antoniopafundi3455 3 жыл бұрын
Great video
@Mokstar35G
@Mokstar35G 3 жыл бұрын
Hussein, having 1 tool for each use case, it's good idea if you have the money, teams and capacity to manage this multi vendor strategy,, but think when you, as a company, need 10 different vendors for 10 different tools and definitely not helping to have the simplicity you are mentioning. Probably having 1 tool to do 10 use cases (in any cloud/ environment) as Nginx do, you can simplify drastically (architecturally speaking) and also, the include the cases where tools doesn't work in different environment, so need extra subscription. As you said, Is all depend on the goal or target.
@hnasr
@hnasr 3 жыл бұрын
Valid point👍
@Mokstar35G
@Mokstar35G 3 жыл бұрын
@@hnasr Thank you Master!
«Жат бауыр» телехикаясы І 26-бөлім
52:18
Qazaqstan TV / Қазақстан Ұлттық Арнасы
Рет қаралды 434 М.
БАБУШКА ШАРИТ #shorts
0:16
Паша Осадчий
Рет қаралды 4,1 МЛН
$1 vs $500,000 Plane Ticket!
12:20
MrBeast
Рет қаралды 122 МЛН
VPN vs Proxy Explained Pros and Cons
36:18
Hussein Nasser
Рет қаралды 29 М.
When should you shard your database?
21:20
Hussein Nasser
Рет қаралды 80 М.
Load balancing in Layer 4 vs Layer 7 with HAPROXY Examples
37:33
Hussein Nasser
Рет қаралды 166 М.
Is there a Limit to Number of Connections a Backend can handle?
18:43
Hussein Nasser
Рет қаралды 34 М.
SSL/TLS Termination, TLS Forward Proxy Pros and Cons
16:56
Hussein Nasser
Рет қаралды 33 М.
Redis In-Memory Database Crash Course
50:01
Hussein Nasser
Рет қаралды 57 М.
Retro MS-DOS Coding - Recreating the Iconic Award BIOS Screen
18:16
NCOT Technology
Рет қаралды 57 М.