Where http2 hits its limit
13:13
14 күн бұрын
When do you use threads?
29:36
Ай бұрын
MySQL is having a bumpy journey
27:37
The Beauty of Assembly
29:31
2 ай бұрын
Frontend and Backends Timeouts
24:40
Postgres just got even faster
26:42
Running out of TCP source ports
18:33
Fundamentals of Operating Systems
10:39
The Cost of Memory Fragmentation
38:19
The Real Hidden Cost of a Request
12:21
Why create Index blocks writes
11:16
Before you move to HTTP/3 ...
11:31
Пікірлер
@tuncaybasak4953
@tuncaybasak4953 3 сағат бұрын
It is very interesting and fun video :). Maybe it would be more precise and fair to compare the time starting from the line we begin our task, this will give the real time that takes the task, as the runtime is usually started only once.
@shaiksoofi3741
@shaiksoofi3741 13 сағат бұрын
Thanks
@jonathonkiner7415
@jonathonkiner7415 Күн бұрын
In other words, a top-down approach is generally considered more efficient than a bottom-up approach.
@vishal8274
@vishal8274 2 күн бұрын
love these podcasts
@fdggddggffg
@fdggddggffg 2 күн бұрын
Can we create Api endpoints?? like forward to particular endpoint if it matches /api, /api1
@manmohanmundhraa3087
@manmohanmundhraa3087 3 күн бұрын
Long polling diagram as i userstood from your video - drive.google.com/file/d/1w5nXI3Evk1WMm1hlm5Xbhr9pP-99kDN7/view?usp=sharing
@Pro-sj1kh
@Pro-sj1kh 4 күн бұрын
Allahu Akbar now 444k subscriber
@justvebsthings
@justvebsthings 4 күн бұрын
I have django project and now I hit multiple requests but its fails its only process one request at a time help me to process multiple requests in django parallel processing
@candyboober
@candyboober 5 күн бұрын
thanks for reading a doc for us
@aRandomAcc-hd3ei
@aRandomAcc-hd3ei 6 күн бұрын
Retard talked nonsense for 28 mins instead of just explaining the concept in like 10 mins. Dumbass
@costathoughts
@costathoughts 6 күн бұрын
I a mistake in an aws question because poll and pull guessing lol
@GrantGryczan
@GrantGryczan 6 күн бұрын
28:12 Thanks for clarifying, at first I thought we were talking about socket sharting.
@ankyrishu
@ankyrishu 6 күн бұрын
Won't Long polling block the threads on backend which will eventually be a disaster for backend as it may have finite number of threads?
@77RzR77
@77RzR77 6 күн бұрын
i open my router's admin panel to the internet so that it never gets lonely :3
@TASHO-khan
@TASHO-khan 7 күн бұрын
Hussein Please make a microservice course on udemy your teaching style is best in the market.
@mohammadjahanb7792
@mohammadjahanb7792 7 күн бұрын
perfect explanation👌
@azadehghasemi3244
@azadehghasemi3244 7 күн бұрын
Was the best , as clear as possible!
@Akshatgiri
@Akshatgiri 8 күн бұрын
Love this, but wouldn’t a push system be better is most of these scenarios? Is the case against websockets is that’s it’s quite resource intensive to keep connections alive, especially for cases where most of these scenarios application doesn’t need the “real timeless”
@aidanwelch4763
@aidanwelch4763 8 күн бұрын
I'm considering having my requests respond with an "expected ready time" then the client only checks again if its past that, but obviously this doesn't work in all cases.
@aidanwelch4763
@aidanwelch4763 8 күн бұрын
Won't having open requests (at least in HTTP) consume a lot of memory on the server?
@jmfernandes8
@jmfernandes8 9 күн бұрын
Hi Hussein! For the queue example, using the long polling model, are we essentially shifting the short polling process from the frotend (browser) <-> backend to the backend <-> event queue? If the client polls and the resource isn’t ready yet, the backend doesn’t respond immediately. Instead, it has to keep checking whether the resource has been processed and is available in the queue to be consumed, essentially short polling. Is this the standard way?
@pedramhaqiqi7030
@pedramhaqiqi7030 9 күн бұрын
what polling strategies can be implemented on the client-side if we do not have control of the BE? Can we do any better than some tailored/configurable exponential-backoff. Lets say we have costly api calls and the service provider only supports a GET/ status request.
@elhaambasheerch7058
@elhaambasheerch7058 9 күн бұрын
I have heard many engineers but very few wiser than this guy.
@ashishrao3069
@ashishrao3069 9 күн бұрын
Hey Hussein, When do we choose Long polling over websockets?
@Frank-qg4ik
@Frank-qg4ik 9 күн бұрын
24:15 sure just gloss over the headline. As far as I know the proxy isn't going to tell the server that anything happened. Maybe if the server has a good stack implementation it can catch the event by writing to a bad socket. But that is a big if. This just creates the opportunity for the backend to increment the pointer without verifying that the client was synced. If polling is absolutely required the it would be way saner to cache and not keep long lived connections open for no reason. But polling is almost never required these days.
@SnSn-p7n
@SnSn-p7n 9 күн бұрын
Doesn’t Kafka use long polling these days? What method Kafka consumer uses to consume the messages?
@Frank-qg4ik
@Frank-qg4ik 9 күн бұрын
@SnSn-p7n dunno, haven't had a use for Kafka yet.
@MaxPicAxe
@MaxPicAxe 10 күн бұрын
I'm at 4:55 and I'm about the guess what long polling means. My guess is, why can't we just wait with the response. When there is no result, don't say there's no result, just wait until there is a result and then respond. Then you might only have to poll like every say minute, and it times out every minute, hence the name long polling.
@BhanuPunmagar-f6u
@BhanuPunmagar-f6u 10 күн бұрын
India jio sni plz
@akankshyadas9759
@akankshyadas9759 10 күн бұрын
the confusion i was having for the last few weeks just vanished away at 5:12 , nobody on this platform ever bothered to mention that this was an old method and the new method incorporates DH key exchange algo. THANK YOU A LOT HUSSEIN !
@mustafhussain7627
@mustafhussain7627 10 күн бұрын
Would be nice if you share some resources or articles.
@srinathshrestha3899
@srinathshrestha3899 10 күн бұрын
But they say texts are encrypted. Is it though
@WherelsWally
@WherelsWally 11 күн бұрын
I'm not sure if I caught this, but how does this work in a distributed system? Suppose the Client makes the initial request to Node 1 to generate the report. Then, the same Client makes a long poll request to Node 2 to get the report when it is ready. How is the system set up such that when the report is actually generated, all Nodes receive this event and sends the response to all clients accordingly? Does each node need to have some kind of consumer to consume "completion" events from some centralised queue? Or do workers push this "completion" event (perhaps by some API call) to all nodes once they are done? Also, if too many clients hold a long polled connection to a server, at some point will the server no longer be able to handle any incoming connections?
@yyyd6559
@yyyd6559 8 күн бұрын
I think if the report have been previously requested by an initial polling request the result will be cashed so they can be fed to subsequent requests in different nodes. I might be wrong.
@victorian1707
@victorian1707 11 күн бұрын
Git Pull😏
@deezydoezeet
@deezydoezeet 11 күн бұрын
I love it!
@theweirdamir
@theweirdamir 11 күн бұрын
443k subs, ur channel is safe now(:
@seephor
@seephor 11 күн бұрын
Hussein. I would be interesting to compare HTTP long-polling to Websocket for push updates. I know they are both TCP technologies and one is true duplex and real-time but that comes at a cost. Do you know how expensive is it for say 1 million long-polled connections vs. 1 million Websocket connections both at idle? I would assume long-polling would win in terms of raw resource requirements and compute or am I wrong?
@sayanbhowmick9203
@sayanbhowmick9203 11 күн бұрын
Loved the way of explanation
@EdmondDantèsDE
@EdmondDantèsDE 11 күн бұрын
Please, no deployment to fridges. 😭
@imhiteshgarg
@imhiteshgarg 11 күн бұрын
Hi Hussein, I just want to confirm that the api on which we get the uuid from the server and the api on which the client asks for the status of that uuid are different apis, right?!
@BlindVirtuoso
@BlindVirtuoso 11 күн бұрын
Excellent one! Thanks! Much appreciated.
@A2Fyise
@A2Fyise 11 күн бұрын
It's fascinating to watch this, especially since I’ve been researching event-driven protocols, WebSockets, and fallback mechanisms as polling. I wasn’t familiar with long polling before-this was super informative.
@hnasr
@hnasr 11 күн бұрын
backend course backend.win 0:00
@FunkyELF
@FunkyELF 11 күн бұрын
Never heard of this concept. I like it, it seems like a very clever way to be efficient. However, as you mentioned... proxies and other middleware might not like it, and to the client they might not be able to distinguish between a middleware timeout or the service itself timing out. Perhaps this could be mitigated the first time it happens by the client itself specifying an ever-decreasing timeout via headers or something until it finally hears back from the service. I'm only at 10:45 right now watching at 2x speed, so maybe it's discussed later ;-)
@davidardo4466
@davidardo4466 11 күн бұрын
Please share roadmap frontend
@danh5637
@danh5637 11 күн бұрын
Pointless rambling.
@ShaliniAgarwal-qk7gi
@ShaliniAgarwal-qk7gi 11 күн бұрын
Hey Hussein, Thank you for all the good content that you share. I am a backend engineer with about 3-4 years of experience and the imposter syndrome is very real for me. I feel I don't know a lot of things which someone with these many years of experience should ideally know and I am trying to get over this feeling. One way I feel it might help me is if I start building good personal projects involving some of the core areas of engineering. I would love to see some content from you on what kinds of projects can a beginner engineer work on. Or anything you deem fit on this topic - personal projects or rather how to self-develop your skills (by self-develop I mean if you don't have the opportunity to work at a big organization with hands-on experience in different technologies). Hoping for you to check out this comment. Thanks!
@akshay__sood
@akshay__sood 12 күн бұрын
There can be n number of CAs across the world and every website I visit can have a different cert chain so how is it possible for anyone to predict those many cert chains to have it installed in my OS?
@sambitmohanty3645
@sambitmohanty3645 12 күн бұрын
Excellent video