WebSockets Crash Course - Handshake, Use-cases, Pros & Cons and more

  Рет қаралды 292,175

Hussein Nasser

Hussein Nasser

Күн бұрын

Пікірлер: 342
@hnasr
@hnasr 5 жыл бұрын
Guys Jump codes for your convenience, HTTP 2:00 WebSockets 5:40 WebSockets Handshake 8:00 WebSockets Usecases 11:20 WebSockets Example Code 14:30 WebSockets Pros and Cons 36:40 Do you have to use webSockets? 42:10 Stay awesome!
@josepetoshi8135
@josepetoshi8135 4 жыл бұрын
Greate course mate!
@thanasisathanasi4965
@thanasisathanasi4965 4 жыл бұрын
Man, every part of your video is really for us. Very well documented and comprehensive! The best I could find./
@TheDroiDGch
@TheDroiDGch 4 жыл бұрын
The best channel about computer science!! thank you so much for these wonderful and helpful videos!
@reinohaider4239
@reinohaider4239 4 жыл бұрын
I need your help.. I need project for MSc computer network guys can any one help me!
@computeering
@computeering 4 жыл бұрын
Can you please make a comprehensive video about keeping track of clients using Websockets?
@langsonchibili1329
@langsonchibili1329 5 жыл бұрын
THE FIRST 5 MINUTES INTO YOUR VIDEO MADE ME UNDERSTAND OVER 3 YEARS WORTH OF INFORMATION, U ARE A BLESSING Hussein Nasser
@GoldenBeholden
@GoldenBeholden 3 жыл бұрын
I love these very bare-bones tutorials; after all, once you understand the essence of an API, using it to build an application is just a matter of applying whatever programming experience you may already have.
@hnasr
@hnasr 3 жыл бұрын
👍👍
@molangdogma796
@molangdogma796 5 жыл бұрын
I HAVE NEVER KNOWN A GUY AS INTELLIGENT AT EXPLAINING STUFF LIKE Hussein Nasser, MUCH THANKS TO YOU SIR.
@hnasr
@hnasr 5 жыл бұрын
Molang dogma Thank you for watching you humbled me ❤️
@truphenalwanga9829
@truphenalwanga9829 5 жыл бұрын
I always like it when a channel has the perfect balance of comedy and education. Subscribed! Great stuff!
@hnasr
@hnasr 5 жыл бұрын
Truphena Lwanga thanks ! Yeah hard to keep the balance. Do tell me if it gets little much. Any feedback helps. Enjoy the content. Cheers
@sailendrapavan3475
@sailendrapavan3475 Жыл бұрын
I think Its better to search any topic in this channel first rather than wasting time in searching docs !!! Thanks Hussein Nasser 🤟
@tdias25
@tdias25 5 жыл бұрын
I cant believe i found this channel, this kinda of content is gold, please keep it up, also gonna watch that one about nodejs and webservers
@hnasr
@hnasr 5 жыл бұрын
Thanks! Very happy your enjoying the content
@MrDeeb00
@MrDeeb00 Жыл бұрын
The most passionate instructor I have ever seen. Thank you for this awesome video!
@parmvirsidhu7563
@parmvirsidhu7563 3 жыл бұрын
I loved the way you start with WHY? then reasoning, when to use and when not to use, very practical approach to all the concepts. That helps in real life implementation decisions of the technology. Many Thanks for wonderful videos!
@naimurhasanrwd
@naimurhasanrwd 2 жыл бұрын
Clicked the video, and this guy started explaining with the topic right from 0.00000 seconds! No channel intro, no personal intro.
@gnack420
@gnack420 4 жыл бұрын
I gotta say, I love the way you present. It's very casual while still including a lot of information. Great video!
@hnasr
@hnasr 4 жыл бұрын
Nick Coad thanks! Glad you enjoy the content 😊
@metinagaoglu4332
@metinagaoglu4332 4 жыл бұрын
Simple and very understandable.Thank you from Turkey, Hussein. I'm gonna watch your all videos.
@hnasr
@hnasr 4 жыл бұрын
Thank you Metin!!
@shubhamkala5514
@shubhamkala5514 5 жыл бұрын
for me it's really difficult to watch such a long videos but your way of explaining things is so good that no one can resist it.Do make a video on EventSource.
@hnasr
@hnasr 5 жыл бұрын
Thanks ! I really appreciate your feedback. It is hard to explain complex topic in short video that is why my lectures are long. i try to include time codes of table of contents.. EventSource is on the list! 👍 Thanks!
@shahinbayat
@shahinbayat 4 жыл бұрын
That was an amazing video, I didn't imagine to understand websockets this much comprehensive and with so much fun! keep going mate 👍
@hnasr
@hnasr 4 жыл бұрын
Appreciate you Sir! Thanks 😊 glad you enjoyed the content!
@shahinbayat
@shahinbayat 4 жыл бұрын
@@hnasr I can't stop enjoying the content you have created with such a great energy and giving them for free! That's amazing! I am suggesting your channel to everyone who is interested to learn about network with a simple language! 🙏
@marcosvalderrey5063
@marcosvalderrey5063 2 жыл бұрын
Not every day I find great content that is also as engaging and entertaining as yours. Amazing job, Hussein!
@section9999
@section9999 4 жыл бұрын
Your accent if fine my dude. We can totally understand what you're saying perfectly. Case in point, I also speak Spanish but no way in hell can I explain backend engineering topics of this level of technical detail in Spanish (or English) as clearly as you can in English. What matters more is the quality of your content, and you sir have some A grade quality content! After watching this I would subscribe, but problem is, I'm already subscribed!
@hnasr
@hnasr 4 жыл бұрын
Thank you Norberto 😍😍
@a7mdbest15
@a7mdbest15 3 ай бұрын
Just create an account and subscribe again 😂
@tech3425
@tech3425 Жыл бұрын
I love how you always show the tech in the browser(the webRTC video also comes to mind), making it seem so simple that you can type it out in the console. No need for so much tooling. This is literally the only channel I've seen that does it like this.
@hnasr
@hnasr Жыл бұрын
i find it easier for simple things plus everyone has a browser and can quickly do it. not to say editors are not useful of course.
@tech3425
@tech3425 Жыл бұрын
@@hnasr knowingly or not, it greatly reduces the cognitive overhead for viewers when learning a new tech
@Mfbzai
@Mfbzai 3 жыл бұрын
Apple need this guy, the speaking way is awesome.
@tech3425
@tech3425 Жыл бұрын
I was on another channel watching some web sockets stuff. It's amazing how simple and easy you make stuff sound.
@gussipp3
@gussipp3 2 жыл бұрын
if my career somehow took off it would be mostly because of you man, keep up the great content
@BizimanaIsingizweChristian
@BizimanaIsingizweChristian 5 ай бұрын
Very good tutorial. I've been learning web sockets for a while without understanding them well but this video came as a solution. Thanks very much
@Akonitx
@Akonitx Жыл бұрын
Bro, your videos with so passion and emotions is really something unbelievable comparing to other plain content in inet. Thanks for your existing!
@dabbopabblo
@dabbopabblo 2 жыл бұрын
Everything I make is with websockets. Maybe that's for the better or maybe its for the worst. I just loooove the bidirectional communication soo much, it allows me to monitor absolutely every little thing about the clients connected to my website in real time and provide them with live updates for the pages they are on
@patrickconrad396
@patrickconrad396 4 жыл бұрын
Just saying you're accent is fantastic man. No need to ever apologize. Well on you. I'm sure that took a lot of time
@hnasr
@hnasr 4 жыл бұрын
Patrick Conrad thanks Patrick
@patrickconrad396
@patrickconrad396 4 жыл бұрын
@@hnasr no thank you man. Only came across your videos today. Started learning a few months back but I feel like I've gained a way more enlightened idea of node and the backend itself just by watching your videos! Wish I'd have found them sooner! Can you recommend a playlist or perhaps even create one (I know you're probably busy) that is a good order for newbies to follow? **NVM I found it Thanks again!!
@thomastaylor1799
@thomastaylor1799 3 жыл бұрын
#1 Your a smart dude. #2 You are a great teacher. #3 Don't apologize for your accent, it is cool!
@raffayhussain6717
@raffayhussain6717 2 жыл бұрын
The great John Danaher says learning should be playful. When I see you, it reminds me of him.
@akashmocha4846
@akashmocha4846 3 жыл бұрын
Never felt learning was this "ENTERTAINING" before. More power to you❤️
@hnasr
@hnasr 3 жыл бұрын
❤️❤️❤️
@taulantus
@taulantus 4 жыл бұрын
i usually don't comment, but i have to give you the props for this amazing video. good job
@hnasr
@hnasr 4 жыл бұрын
Thanks for taking the time to comment! Appreciate it , glad I could help. have a beautiful day. 😊
@thanasisathanasi4965
@thanasisathanasi4965 4 жыл бұрын
This definitely gets a like and saved in my favorite videos. Best tutorial on the subject !!!!
@hnasr
@hnasr 4 жыл бұрын
Thanks!! Enjoy the content ☺️☺️
@youee1234
@youee1234 5 жыл бұрын
Everything you publish is so pro! thanks for making our lives easier to grasp!
@hnasr
@hnasr 5 жыл бұрын
Thanks 😊 enjoy the content and let me know what you want to see next! Cheers and love
@sajithtm4864
@sajithtm4864 3 жыл бұрын
You're such an amazing guy who brings out toughest concepts too simple. Keep doing Bro..👌
@mhh263
@mhh263 3 жыл бұрын
Everyone thiinks Client-Server model is dead, but hey Hussein comes to rescue. Great stuff man 👍
@Gringo0517
@Gringo0517 4 жыл бұрын
Love the conversational tone. Great video!
@tech3425
@tech3425 Жыл бұрын
Dude your accent is perfect. Fuck everybody making fun of it. I literally enjoy the way you pronounce stuff differently
@pragmaticsoftwareengineer7965
@pragmaticsoftwareengineer7965 5 жыл бұрын
excellent stuff mate. so glad I stumbled upon your channel.
@voxhominem
@voxhominem 4 жыл бұрын
damn that was actually helpful. I swear I've read 4 tutorials before now that couldn't have been harder to understand if they'd tried. you earned yourself a new subscriber my dude
@hnasr
@hnasr 4 жыл бұрын
Thank you Vox for watching and I am glad I earned your trust. Hopefully I deliver the content you enjoy cheers! thanks ..
@kidjr.9520
@kidjr.9520 Жыл бұрын
Very clear and the illustrations made it easier to visualize! Very Efficient video on web sockets!
@shrestha0144
@shrestha0144 3 жыл бұрын
I just love your teaching style
@reemachourey9462
@reemachourey9462 4 жыл бұрын
Came here from your Spotify Podcast! Happy to find awesome content.
@hnasr
@hnasr 4 жыл бұрын
Thanks Reema!!! Welcome to the channel. Enjoy the content 😊😊
@TheMathematicalMan
@TheMathematicalMan 3 жыл бұрын
Thanks for the step-by-step guide!
@ajayraja1998
@ajayraja1998 4 жыл бұрын
the only video which explains very well thanks a lot brother
@annyni6640
@annyni6640 3 жыл бұрын
Love your videos! Have never found anyone else who can teach better
@moneeshkumar1838
@moneeshkumar1838 Жыл бұрын
Great Explanation Subscribed Keep posting
@ashishmaikhuri3950
@ashishmaikhuri3950 3 жыл бұрын
Nice work Hussain. I am finally able to understand websocket
@hnasr
@hnasr 3 жыл бұрын
🙏
@connordelaney2536
@connordelaney2536 2 жыл бұрын
Thank you for taking the time to make this. :)
@jervex-e3514
@jervex-e3514 Жыл бұрын
such as a treasure thanks!!
@zolika154
@zolika154 4 жыл бұрын
literally had me laughing out loud like 3 times
@briandines
@briandines 2 жыл бұрын
Excellent tutorial. You're funny which made this a little bit easier.
@seems-legit
@seems-legit 3 жыл бұрын
You beautiful man, All other tutorials ive found have tried to make websockets seem like this dark mystic old gods tech that you haver to handle handshakes manually and send control frames. you got a subscriber
@ishdx9374
@ishdx9374 5 жыл бұрын
Thanks for this video, I found it really easy interesting, since I'm working on a web game right now.
@hnasr
@hnasr 5 жыл бұрын
Amazing! Keep us up to date with the progress of your game. Cheers!
@SohailKhan-cb9ls
@SohailKhan-cb9ls 3 жыл бұрын
Thank you brother, you just solved a system design problem for me. You have a great and unique teaching technique, don't change it. I would really appreciate if you also cover cloud system designs. Thanks again 👍
@hnasr
@hnasr 3 жыл бұрын
🙏🙏🙏
@webrevolution.
@webrevolution. 2 жыл бұрын
19:15 Right there man. Right there you got my subscription. LOL.
@bardhan.abhirup
@bardhan.abhirup 4 жыл бұрын
Hey Hussein, thanks a ton for the videos. Just discovered them. The content seems great! I hope you don't mind me saying that you volume levels need adjusting. At times it sounds like you're whispering into the mic and it's not audible, other times it's super loud. If you could somehow normalize that, it'd be great. Thanks!
@hnasr
@hnasr 4 жыл бұрын
Thank you so much! I am working on my audio and making better I think it got better on my new videos.
@sumedh1771
@sumedh1771 3 жыл бұрын
This is so awesome
@massimoaristide8879
@massimoaristide8879 3 жыл бұрын
Really easy and entertaining introduction.
@stevemcguigan8359
@stevemcguigan8359 2 жыл бұрын
Been waiting for an ah-ha moment on this for a while and this was it. Subbed.
@chintukarthi1781
@chintukarthi1781 2 жыл бұрын
thank you so much for the explanation. Really appreciate all your effort in making this video.
@uchennanwanyanwu2777
@uchennanwanyanwu2777 4 жыл бұрын
7:14 ...it's the wild west. very funny explanation. cool
@taihatranduc8613
@taihatranduc8613 4 жыл бұрын
you're so funny in the middle of the boring, cold, unemotional, coding world
@SachinKumar-js8yd
@SachinKumar-js8yd 4 жыл бұрын
Liked, subscribed. Your content is GOLD.
@kaloyangeorgiev6824
@kaloyangeorgiev6824 10 ай бұрын
Thank you very much, amazing explanation!
@coutinhotiago
@coutinhotiago 4 жыл бұрын
Concerning the 2 TCP connections necessary to have redis pub/sub + req/rep: I believe that since redis RESP3 protocol (redis >=6) it possible to share both in the same TCP connection. BTW, it would be great to see you do a video on redis 6. Stay awesome 😎
@sohamnavadiya992
@sohamnavadiya992 2 жыл бұрын
Learn a lot from your videos. Thank you for sharing. I have one request please upload one video on long pooling.
@hnasr
@hnasr 2 жыл бұрын
I Made a video a while back Long Polling and how it differs from Push, Poll and SSE - The Backend Engineering Show kzbin.info/www/bejne/gGHSnKWXfquDgJI
@paulstaley4245
@paulstaley4245 5 жыл бұрын
I'm 11 minutes into this video and I love how professional this video is. Well done with the structuring! I can't believe this only has 4k views.
@hnasr
@hnasr 5 жыл бұрын
Thanks Paul! I appreciate your comment glad the content is of high value to you. Let me know what software engineering content would you like me to make. Cheers
@edwinroman30
@edwinroman30 2 жыл бұрын
New subscriber. Awesome content and great explanation. I'm speechless many thanks for all and the recommended sources.
@coding3438
@coding3438 Жыл бұрын
Great video but can you please explain when you said at the start of the video, what does “opening a connection” mean? What exactly happens in the computer when you “open a connection”
@JoaoRodrigues-yw3bh
@JoaoRodrigues-yw3bh Жыл бұрын
Amazing and timeless!!
@lonewolf2547
@lonewolf2547 3 жыл бұрын
A M A Z I N G.....!!!!! awesome explanation dude
@jeppechristensen5707
@jeppechristensen5707 3 жыл бұрын
Thanks alot. You made me reconsider the EventSource API 🙂
@iyxan23
@iyxan23 3 жыл бұрын
I just love this channel!
@Pscribbled
@Pscribbled Жыл бұрын
13:30 multiplayer games are inherently stateful. Multiplayer games are also pretty short lived as well so they don’t need to be stateless. You design the game servers along with the underlying hardware requirements based on the requirements of your game and you ‘horizontally scale’ by having multiple (independent) games running at the same time
@PabloGnesutta
@PabloGnesutta 2 жыл бұрын
Any hints on how to build your own web socket implementation? Hussein always talks about understanding the underlying tech before using a library, but I can't fathom how to even start building one for websockets
@rodeschorpioen
@rodeschorpioen 4 жыл бұрын
Cool and comprehensive video. thx and keep up the good work!
@hnasr
@hnasr 4 жыл бұрын
Thank you Wouter! 🙏
@369-davian
@369-davian 6 ай бұрын
nice voice, my greetings from dominican republic
@newtonsarr1234
@newtonsarr1234 3 жыл бұрын
Your tutorials are just amazing. I love it.
@singaravelann3671
@singaravelann3671 4 жыл бұрын
Hi Hussain, I am really loving the way you deliver the content, can you please make a video to do the load balancer for websocket and how can we scale it horizontally.
@singaravelann3671
@singaravelann3671 4 жыл бұрын
I know we can do this by having the pub/sub model in the Backend, If you can make little crash course on this we will have clear idea.
@hnasr
@hnasr 4 жыл бұрын
Thanks ! I do explain how to secure web socket and load balance it through a reverse proxy here Secure WebSockets Explained by Example (with HAProxy) kzbin.info/www/bejne/iJeZcpmepq9-rsk
@singaravelann3671
@singaravelann3671 4 жыл бұрын
@@hnasr thanks hussian that's wonderful.
@hamidRaven13
@hamidRaven13 Жыл бұрын
thanks it was very teachingful💯💯💯
@sourabhkumar6194
@sourabhkumar6194 2 жыл бұрын
Your tutorial really helped me, thanks
@dramen555
@dramen555 3 жыл бұрын
Great video Huso, but i would like to give you a suggestion on your friendly comments almost on everything. It's good to hear your friendly comments but it's a bit too much and at some point, it starts to get annoyed. It becomes hard to track the things you are talking about. Maybe lowering amount of your "funny comments" will help to make your videos more valuable. I hope you don't get me wrong. Thanks.
@AhmedAli-go7wx
@AhmedAli-go7wx 3 жыл бұрын
thanks, Nasser for this great content ...
@okage_
@okage_ Жыл бұрын
pretty good video, i learnt alot! thank you
@paulzaslavskij5472
@paulzaslavskij5472 3 жыл бұрын
Отличное видео! Отправляю овацию (40,00 ₽). 👏
@hnasr
@hnasr 3 жыл бұрын
Thank you!
@coolvjh
@coolvjh 3 жыл бұрын
Love your content. Keep them coming!
@shaukat9823
@shaukat9823 4 жыл бұрын
Amazing stuff Hussein , Thanks a ton
@hnasr
@hnasr 4 жыл бұрын
Thank you dear
@ebukaume
@ebukaume Жыл бұрын
Another nice one from you, thanks 🙌. How does websocket compare to the protocols used by services like Redis or postgreSQL?
@rshaikh05
@rshaikh05 3 жыл бұрын
jazakAllahu khair. keep up the good work.
@HosseinOjvar
@HosseinOjvar 4 жыл бұрын
I Like your narration Hussein, Continue boy ;)
@hnasr
@hnasr 4 жыл бұрын
Will do 😍
@alitariq7726
@alitariq7726 Жыл бұрын
Love your work. 👍👍👍
@marianbieda
@marianbieda Жыл бұрын
Dziękujemy.
@madanmohanpachouly6135
@madanmohanpachouly6135 2 жыл бұрын
Real cool explanation.
@HM_Milan
@HM_Milan 4 жыл бұрын
What a amazing video, awesome how you dilever
@KazLA
@KazLA 4 жыл бұрын
Wow you’re awesome - fun to follow
@hnasr
@hnasr 4 жыл бұрын
Wow, thank you appreciate it
@AvnishKumar-zf9km
@AvnishKumar-zf9km 4 жыл бұрын
great explained everything. thank a lot bro.
@kjahirhussain
@kjahirhussain 3 жыл бұрын
Love the explanation!
@Beny123
@Beny123 2 жыл бұрын
Brilliant job! thanks
@Twerqt
@Twerqt 4 жыл бұрын
Wonderful explanation. Can you explain the etymology of the term "socket" ... it is widely used in various places, from OS inter-process communication to TCP sockets and stuff ...
@pallanti_techtalk
@pallanti_techtalk 2 жыл бұрын
Great explanation
@ayanSaha13291
@ayanSaha13291 Жыл бұрын
Thanks for the video. It helps.
@leobartolome5206
@leobartolome5206 3 жыл бұрын
Do you recommend using websocket for tracking system or should I use other alternative? and if yes what database is suitable for websocket?
@richardmaduka4747
@richardmaduka4747 4 жыл бұрын
I'm glad I found your channel, you are great at explaining concepts.
@hnasr
@hnasr 4 жыл бұрын
Thank you! I am glad too that the content is useful 🙏😊
gRPC Crash Course - Modes, Examples, Pros & Cons and more
1:19:38
Hussein Nasser
Рет қаралды 235 М.
SSL/TLS Termination, TLS Forward Proxy Pros and Cons
16:56
Hussein Nasser
Рет қаралды 32 М.
This Game Is Wild...
00:19
MrBeast
Рет қаралды 122 МЛН
Увеличили моцареллу для @Lorenzo.bagnati
00:48
Кушать Хочу
Рет қаралды 8 МЛН
Server-Sent Events Crash Course
29:48
Hussein Nasser
Рет қаралды 96 М.
How to use WebSockets with React and Node
1:11:51
Ably Realtime
Рет қаралды 34 М.
WebSocket in NodeJS | Socket.IO - Real Time Messaging
32:27
Piyush Garg
Рет қаралды 197 М.
A Beginner's Guide to WebSockets
29:26
freeCodeCamp.org
Рет қаралды 328 М.
WebRTC Crash Course
1:10:06
Hussein Nasser
Рет қаралды 236 М.
Socket.io + ReactJS Tutorial | Learn Socket.io For Beginners
32:35
This Game Is Wild...
00:19
MrBeast
Рет қаралды 122 МЛН