What are WebSockets? How is it different from HTTP?

  Рет қаралды 79,234

Mehul - Codedamn

Mehul - Codedamn

Күн бұрын

In this video, I talk about:
How does the HTTP protocol work?
What are WebSockets?
When/Where can WebSockets be used?
Differences between HTTP and WebSockets
⚛️ Learn Full Stack Development on codedamn: cdm.sh/fullstack
Timestamps
0:00 Video starts
0:25 What is HTTP protocol?
0:42 How HTTP works?
2:37 HTTP is a stateless protocol
3:48 How WebSockets work?
4:43 Difference between HTTP & WebSockets
5:51 Scalability
6:33 WebSockets is a stateful connection
7:47 Other Differences
8:17 Conclusion
👉 Free HTML5 + CSS3 Course: cdm.sh/htmlcsscourse
👉 Free JavaScript Course: cdm.sh/jsbasicscourse
👉 Free ReactJS Course: cdm.sh/react
👉 Free NextS Course: cdm.sh/nextjsbasicscourse
💰 Refer codedamn to friends and earn $$: cdm.sh/refer
👉 Checkout codedamn on social:
Instagram: cdm.sh/ig
Twitter: cdm.sh/twt
Facebook: cdm.sh/fb
GitHub: cdm.sh/github
If you found the video valuable, please leave a like and subscribe ❤️ It helps the channel grow and helps me pumping out more such content.
👋 About Me:
Hey! I'm Mehul Mohan, a CSE'21 graduate from BITS Pilani, Goa. I started coding early in life, at the age of 13 when I created my first blog on Blogger. I am listed in Google, Microsoft, Sony, eSet, etc. Hall of Fame for reporting vulnerabilities in their systems.
🍎 I am Apple's WWDC'19 Scholar - visited San Francisco and attended WWDC.
📙 I am an author of 2 books, on JavaScript and React - cdm.sh/mehulbooks
🚀 Currently working on my own startup - codedamn.
Connect with me:
📸 Instagram: cdm.sh/mehulig
📱 Twitter: cdm.sh/mehultwitter
📝 LinkedIn: cdm.sh/mehullinkedin
📂 GitHub: cdm.sh/mehulgithub
🌎 Personal website: cdm.sh/mehulblog
💻 Start learning to code for free: cdm.sh/codedamn
🧑‍🤝‍🧑 Discord community: cdm.sh/discord
👉 HTML5 + CSS3 Tutorials: cdm.sh/htmlcssytplaylist
👉 Complete JavaScript Tutorial: cdm.sh/jstutorial
👉 Complete React Crash Course: cdm.sh/reacttutorial
👉 Next JS Tutorials: cdm.sh/nextjsytplaylist
🏷 Video Tags:
What are WebSockets
How is it different from HTTP
WebSockets explained
👉 Check out my other personal KZbin channel (it is in Hindi/English mix) where I share coding tips, tricks, and hacks: cdm.sh/mehulyt

Пікірлер: 89
@codedamn
@codedamn 2 жыл бұрын
Start learning Full Stack Web Development with codedamn: cdm.sh/fullstack
@pranab091
@pranab091 2 жыл бұрын
This is great man. Need more content like this. Understanding the different web technologies is great.
@alex_blue5802
@alex_blue5802 Жыл бұрын
Concise and simple explanation. I love the whiteboard instead of a prepared powerpoint. It feels much easier to follow somehow.
@codingstation7741
@codingstation7741 2 жыл бұрын
Recently discovered your channel. You teach really good!! I wish I found this channel a few years before.
@arogyabichpuria3262
@arogyabichpuria3262 2 жыл бұрын
loved it, keep'em coming covering these mini topics, provides the "aha" moment.
@NadaII
@NadaII Ай бұрын
Love that you just keep the Ring of Power on all your content.
@pieter5466
@pieter5466 Жыл бұрын
Good explanation on the relationship and establishment of a TCP connection, HTTP requests, and Sockets.
@karanb2067
@karanb2067 5 ай бұрын
For a long time HTTP and websocket were the same to me... Thank you for clarifying the difference
@TheTobeyGaming
@TheTobeyGaming Жыл бұрын
Great explanation, i really like the letter vs. phonecall example, because it really helps to understand it 😄
@vinoltauro9160
@vinoltauro9160 2 жыл бұрын
very clear and concise. Thank you !
@singmantkpss
@singmantkpss Жыл бұрын
wow crystal clear intro for me as a newbie. thx!
@lucianocavallo10
@lucianocavallo10 Жыл бұрын
Excellent video, very well explained, and easy to understand or refresh the protocols topic. Thank you very much!
@manojdewangan7534
@manojdewangan7534 2 жыл бұрын
Thanks for explaining these concepts in very simple way. I would suggest to add real use cases of these concepts so that we can relate it.
@hackingsimplifiedinmalayal144
@hackingsimplifiedinmalayal144 2 жыл бұрын
Great content and crystal clear explanation👍
@Shakas420
@Shakas420 2 жыл бұрын
Great explanation. As always!!
@jakegica2524
@jakegica2524 Жыл бұрын
Very clear explanation. thanks mate
@rokibDev
@rokibDev Жыл бұрын
Amazing thank you for great explanation.
@malanbandara
@malanbandara 2 жыл бұрын
Thank you for valuable content ❤️
@_techme
@_techme 2 жыл бұрын
So much informative , keep it up bro ✌️ 😀✌️
@danbrian5049
@danbrian5049 Жыл бұрын
Wonderful video. Thank you
@mayurdugar03
@mayurdugar03 Жыл бұрын
Well explained. Thanks! :)
@mattaldrete8144
@mattaldrete8144 2 жыл бұрын
This was very helpful!
@DevOpsLabs4Me
@DevOpsLabs4Me Жыл бұрын
Great explanation of web sockets.
@ricardohincapie1537
@ricardohincapie1537 10 ай бұрын
Great video. Thanks!
@cordelldev
@cordelldev Жыл бұрын
Great video, thanks for this!
@abhishekvishwakarma9045
@abhishekvishwakarma9045 2 жыл бұрын
Great, Informative 👍
@VijayKumar-pd7vv
@VijayKumar-pd7vv 2 жыл бұрын
Now this is a quality content
@paprikawurstify
@paprikawurstify 8 ай бұрын
very good video thank you, helped me a lot to understand websockets and also http again :)
@supersoniq4102
@supersoniq4102 Жыл бұрын
You made this complex concept become like ABC
@praneethreddy904
@praneethreddy904 5 ай бұрын
you have great knowledge
@nitinpathak1826
@nitinpathak1826 5 ай бұрын
Great explanation 👍🏼
@user-ql5ei4sc2h
@user-ql5ei4sc2h 10 ай бұрын
Great explaination...
@SilentSolution
@SilentSolution Жыл бұрын
Thanks for explaining
@SignUpCrmTesting
@SignUpCrmTesting Жыл бұрын
Very Helpful
@prataprudradeva4713
@prataprudradeva4713 2 жыл бұрын
Great explaination please share some use cases for WS.
@cdb8987
@cdb8987 Жыл бұрын
Great explanation
@Avoid0
@Avoid0 2 жыл бұрын
Great video 🔥
@Sonu-tg6tg
@Sonu-tg6tg 2 жыл бұрын
Thanks for such awesome videos, always waiting for your new videos, will be glad to get t-shirt giveaway
@shrestha0144
@shrestha0144 2 жыл бұрын
I really love your videos
@PraveenKumar-ft2kr
@PraveenKumar-ft2kr 11 ай бұрын
Nice explanation :)
@YOUdudex
@YOUdudex 2 жыл бұрын
Nice video, please bring the scaling web socket video 😁
@vishalpatil7994
@vishalpatil7994 2 жыл бұрын
Thank you mehul sir
@alexandruhutu3067
@alexandruhutu3067 Жыл бұрын
Really nice video!
@hartajsingh1554
@hartajsingh1554 2 жыл бұрын
@codedamn please try to use ring light on higher angle than your camera so that we would not see that reflection of light
@krishnendudasgupta3397
@krishnendudasgupta3397 2 жыл бұрын
Great One Sir :) :)
@pranavbhat29
@pranavbhat29 2 жыл бұрын
1:19 - Network Layer " decided which physical path the data will take ". Isn't it logical path? Isn't the case that Network layer/Layer 3 ( IP ) is responsible for logical addressing, while layer 2, or data link layer responsible for physical addresses ( like the Medium Access Control or MAC addresses which are 48 bit numbers resolved using ARP ? )
@trustingod0
@trustingod0 2 жыл бұрын
Great video
@justcurious1940
@justcurious1940 7 ай бұрын
Finally I get it.
@sterin7279
@sterin7279 6 ай бұрын
thankyou
@abhijithm7179
@abhijithm7179 Жыл бұрын
In case of microservices architecture, say I have a process A and process B. Now, Process A needs to continuously ask for some data from Process B. In this case, horizontal scalability issue does not come into picture. Do you think web socket communication is suitable in this scenario.?
@shivdix
@shivdix 10 ай бұрын
Nice
@ridl27
@ridl27 2 жыл бұрын
ty
@brajeshanokha1343
@brajeshanokha1343 2 жыл бұрын
Video is full informative, thankyou for such videos. Please remove the animation (folded paper) from behind the images, it distracts concentration.
@Rayrockny
@Rayrockny Жыл бұрын
Hey did you ever do a follow up video on scaling? Would it illogical to design a live chat for millions of people using websock?
@amanagarwal2022
@amanagarwal2022 2 жыл бұрын
Any resource on how to use websocket and get authentication and authorisation done??
@dempseyroll96
@dempseyroll96 9 ай бұрын
if HTTP(a protocol because hyper text transfer protocol) part of TCP (Transfer control protocol) then is web socket a protocol as well?
@MrRuchir23
@MrRuchir23 2 жыл бұрын
Great explaination , love these types of video Thanks @codedamn
@omairkhan1355
@omairkhan1355 Жыл бұрын
bro tell me can we establish a ws connection with IRCTC
@kishalayray7570
@kishalayray7570 2 жыл бұрын
Make a video on webhook With project
@matlepak9694
@matlepak9694 Жыл бұрын
so is a websocket essentially a TCP connection that stays on?
@lakshman587
@lakshman587 2 жыл бұрын
COMMENTED FOR T SHIRT GIVEAWAY!! :)
@hamaed19
@hamaed19 Жыл бұрын
👍👍
@kehan6252
@kehan6252 Жыл бұрын
So in a simple way, HTTP sends a request and then receives a response. Then the connection is closed. Web Sockets constantly send and receive messages and only cut off if the user/server wants to.
@matthayden1979
@matthayden1979 Жыл бұрын
If both TCP and Websockets establishes a two way communication, what is the difference between them?
@chirag_ccp
@chirag_ccp Жыл бұрын
HTTP and Web Sockets both run on top of a TCP Connection. We cannot compare TCP with web sockets because Socket runs over TCP. TCP allows two-way communication by default but HTTP being stateless works on the request-response model. On the other hand, Sockets are stateful so they have duplex(two-way) communication.
@codingdesires
@codingdesires 2 жыл бұрын
Do you edit your own videos man?
@MSS_MANIKANDAN
@MSS_MANIKANDAN 2 жыл бұрын
Light is distracted 🙂
@pratyushrao7979
@pratyushrao7979 7 ай бұрын
No you are distracted by the light
@hsngsoftware4380
@hsngsoftware4380 2 жыл бұрын
Can you please show it in code ?
@trustingod0
@trustingod0 2 жыл бұрын
When is it more beneficial to use web sockets ?
@matthayden1979
@matthayden1979 Жыл бұрын
used in chat or messanger applications
@aniketyadav6009
@aniketyadav6009 11 ай бұрын
Please provide in depth explanation, this video is not enough to get clear idea of a topic
@harshitgoyal19
@harshitgoyal19 2 жыл бұрын
To be honest, I am here for the GIVEAWAY 🤦‍♂️
@dilipkk255
@dilipkk255 6 ай бұрын
Always assume a layman watching you and start
@joanestradaramos1541
@joanestradaramos1541 2 ай бұрын
i think you re confused about what's half duplex and full duplex
@jayak3768
@jayak3768 2 жыл бұрын
Sorry doesn't address the depth of what closing a channel really means and when another channel is established what are implications.
@saidakhmedagitaev
@saidakhmedagitaev 2 жыл бұрын
I am not trying to be picky, but the music in the background is really distracting
@aniketyadav6009
@aniketyadav6009 11 ай бұрын
Audio quality is poor
@exe.m1dn1ght
@exe.m1dn1ght 10 ай бұрын
wtf you are explaining very confusing , so http connection close but tcp connection remain wtf is that ? http is in application layer and tcp is at layer 4 so how one can be close and other is open you are confusing !!!!
@dhruvabhattacharya
@dhruvabhattacharya 9 ай бұрын
WhatsApp use web sockets.
@mysoregopinathshantanu8800
@mysoregopinathshantanu8800 2 жыл бұрын
May the like be on this comment.
@vcbcs2310
@vcbcs2310 3 ай бұрын
you explained nothing . total time waste.. you are making just fool
@purpinkn
@purpinkn Жыл бұрын
You don't even bother to move the light. So the whole time I'm starting at a ring.
@toranekosama
@toranekosama 10 ай бұрын
is so great
@Naz-yi9bs
@Naz-yi9bs 2 жыл бұрын
Amazing thank you for great explanation.
Difference between cookies, session and tokens
11:53
Valentin Despa
Рет қаралды 584 М.
Homemade Professional Spy Trick To Unlock A Phone 🔍
00:55
Crafty Champions
Рет қаралды 40 МЛН
Whyyyy? 😭 #shorts by Leisi Crazy
00:16
Leisi Crazy
Рет қаралды 20 МЛН
Они убрались очень быстро!
00:40
Аришнев
Рет қаралды 3,2 МЛН
Sprinting with More and More Money
00:29
MrBeast
Рет қаралды 181 МЛН
Why WebSockets Are NOT Scalable | WebSockets Explained
12:07
Mehul - Codedamn
Рет қаралды 32 М.
What is HTTP? How the Internet Works! #1
17:26
FollowAndrew
Рет қаралды 118 М.
What is WebSocket? Why is it used & how is it different from HTTP?
33:23
What is a Webhook? Webhooks for Beginners
10:06
Mehul - Codedamn
Рет қаралды 199 М.
WebSockets Crash Course - Handshake, Use-cases, Pros & Cons and more
47:33
What is a Protocol? (Deepdive)
18:14
LiveOverflow
Рет қаралды 157 М.
What are WebSockets | How is it different from HTTP?
15:42
Tech Primers
Рет қаралды 383 М.
Top 8 Most Popular Network Protocols Explained
6:25
ByteByteGo
Рет қаралды 253 М.
SSL, TLS, HTTPS Explained
5:54
ByteByteGo
Рет қаралды 683 М.
How Web Sockets work | Deep Dive
10:22
ByteMonk
Рет қаралды 4,9 М.
Homemade Professional Spy Trick To Unlock A Phone 🔍
00:55
Crafty Champions
Рет қаралды 40 МЛН