What are WebSockets? How is it different from HTTP?

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 ก.พ. 2025

ความคิดเห็น • 92

  • @codedamn
    @codedamn  3 ปีที่แล้ว +10

    Start learning Full Stack Web Development with codedamn: cdm.sh/fullstack

  • @pranab091
    @pranab091 3 ปีที่แล้ว +12

    This is great man. Need more content like this. Understanding the different web technologies is great.

  • @NadaII
    @NadaII 9 หลายเดือนก่อน +1

    Love that you just keep the Ring of Power on all your content.

  • @alex_blue5802
    @alex_blue5802 ปีที่แล้ว +5

    Concise and simple explanation. I love the whiteboard instead of a prepared powerpoint. It feels much easier to follow somehow.

  • @karanb2067
    @karanb2067 ปีที่แล้ว

    For a long time HTTP and websocket were the same to me... Thank you for clarifying the difference

  • @arogyabichpuria3262
    @arogyabichpuria3262 3 ปีที่แล้ว +1

    loved it, keep'em coming covering these mini topics, provides the "aha" moment.

  • @agi_lab
    @agi_lab 6 หลายเดือนก่อน

    Amazing. i have my interview tmrw and this gives a quick overview. thank you

  • @TheTobeyGaming
    @TheTobeyGaming ปีที่แล้ว +6

    Great explanation, i really like the letter vs. phonecall example, because it really helps to understand it 😄

  • @singmantkpss
    @singmantkpss ปีที่แล้ว

    wow crystal clear intro for me as a newbie. thx!

  • @supersoniq4102
    @supersoniq4102 2 ปีที่แล้ว

    You made this complex concept become like ABC

  • @paprikawurstify
    @paprikawurstify ปีที่แล้ว

    very good video thank you, helped me a lot to understand websockets and also http again :)

  • @pieter5466
    @pieter5466 ปีที่แล้ว

    Good explanation on the relationship and establishment of a TCP connection, HTTP requests, and Sockets.

  • @supremeleader5516
    @supremeleader5516 6 หลายเดือนก่อน

    very good explanation

  • @wolfsupernova-fv4jd
    @wolfsupernova-fv4jd 7 หลายเดือนก่อน

    Thank you, great explanation!

  • @praneethreddy904
    @praneethreddy904 ปีที่แล้ว

    you have great knowledge

  • @nitinpathak1826
    @nitinpathak1826 ปีที่แล้ว

    Great explanation 👍🏼

  • @jakegica2524
    @jakegica2524 2 ปีที่แล้ว

    Very clear explanation. thanks mate

  • @cdb8987
    @cdb8987 ปีที่แล้ว

    Great explanation

  • @SilentSolution
    @SilentSolution 2 ปีที่แล้ว

    Thanks for explaining

  • @manojdewangan7534
    @manojdewangan7534 3 ปีที่แล้ว +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.

  • @DevOpsLabs4Me
    @DevOpsLabs4Me 2 ปีที่แล้ว

    Great explanation of web sockets.

  • @SignUpCrmTesting
    @SignUpCrmTesting ปีที่แล้ว

    Very Helpful

  • @VinayakKhairnar-m6r
    @VinayakKhairnar-m6r ปีที่แล้ว

    Great explaination...

  • @PraveenKumar-ft2kr
    @PraveenKumar-ft2kr ปีที่แล้ว

    Nice explanation :)

  • @pranavbhat29
    @pranavbhat29 3 ปีที่แล้ว +6

    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 ? )

  • @ricardohincapie1537
    @ricardohincapie1537 ปีที่แล้ว

    Great video. Thanks!

  • @hartajsingh1554
    @hartajsingh1554 3 ปีที่แล้ว +1

    @codedamn please try to use ring light on higher angle than your camera so that we would not see that reflection of light

  • @mattaldrete8144
    @mattaldrete8144 2 ปีที่แล้ว

    This was very helpful!

  • @cordelldev
    @cordelldev 2 ปีที่แล้ว

    Great video, thanks for this!

  • @danbrian5049
    @danbrian5049 2 ปีที่แล้ว

    Wonderful video. Thank you

  • @VijayKumar-pd7vv
    @VijayKumar-pd7vv 3 ปีที่แล้ว

    Now this is a quality content

  • @codingstation7741
    @codingstation7741 3 ปีที่แล้ว

    Recently discovered your channel. You teach really good!! I wish I found this channel a few years before.

  • @lucianocavallo10
    @lucianocavallo10 2 ปีที่แล้ว

    Excellent video, very well explained, and easy to understand or refresh the protocols topic.
    Thank you very much!

  • @_techme
    @_techme 3 ปีที่แล้ว

    So much informative , keep it up bro
    ✌️ 😀✌️

  • @abhishekvishwakarma9045
    @abhishekvishwakarma9045 3 ปีที่แล้ว

    Great, Informative 👍

  • @mayurdugar03
    @mayurdugar03 2 ปีที่แล้ว

    Well explained. Thanks! :)

  • @alexandruhutu3067
    @alexandruhutu3067 2 ปีที่แล้ว

    Really nice video!

  • @Shakas420
    @Shakas420 3 ปีที่แล้ว

    Great explanation. As always!!

  • @Naz-yi9bs
    @Naz-yi9bs 3 ปีที่แล้ว

    Amazing thank you for great explanation.

  • @vinoltauro9160
    @vinoltauro9160 3 ปีที่แล้ว

    very clear and concise. Thank you !

  • @shrestha0144
    @shrestha0144 3 ปีที่แล้ว

    I really love your videos

  • @vishalpatil7994
    @vishalpatil7994 3 ปีที่แล้ว

    Thank you mehul sir

  • @malanbandara
    @malanbandara 3 ปีที่แล้ว

    Thank you for valuable content ❤️

  • @Avoid0
    @Avoid0 3 ปีที่แล้ว

    Great video 🔥

  • @KrishnenduKDG
    @KrishnenduKDG 3 ปีที่แล้ว

    Great One Sir :) :)

  • @hackingsimplifiedinmalayal144
    @hackingsimplifiedinmalayal144 3 ปีที่แล้ว

    Great content and crystal clear explanation👍

  • @Sonu-tg6tg
    @Sonu-tg6tg 3 ปีที่แล้ว

    Thanks for such awesome videos, always waiting for your new videos, will be glad to get t-shirt giveaway

  • @brajeshanokha1343
    @brajeshanokha1343 3 ปีที่แล้ว

    Video is full informative, thankyou for such videos. Please remove the animation (folded paper) from behind the images, it distracts concentration.

  • @prataprudradeva4713
    @prataprudradeva4713 3 ปีที่แล้ว

    Great explaination please share some use cases for WS.

  • @YOUdudex
    @YOUdudex 3 ปีที่แล้ว

    Nice video, please bring the scaling web socket video 😁

  • @trustingod0
    @trustingod0 3 ปีที่แล้ว

    Great video

  • @justcurious1940
    @justcurious1940 ปีที่แล้ว

    Finally I get it.

  • @dempseyroll96
    @dempseyroll96 ปีที่แล้ว

    if HTTP(a protocol because hyper text transfer protocol) part of TCP (Transfer control protocol) then is web socket a protocol as well?

  • @sterin7279
    @sterin7279 ปีที่แล้ว

    thankyou

  • @omairkhan1355
    @omairkhan1355 2 ปีที่แล้ว

    bro tell me can we establish a ws connection with IRCTC

  • @shivdix
    @shivdix ปีที่แล้ว

    Nice

  • @MSS_MANIKANDAN
    @MSS_MANIKANDAN 3 ปีที่แล้ว +13

    Light is distracted 🙂

    • @pratyushrao7979
      @pratyushrao7979 ปีที่แล้ว

      No you are distracted by the light

  • @abhijithm7179
    @abhijithm7179 2 ปีที่แล้ว

    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.?

  • @amanagarwal2022
    @amanagarwal2022 3 ปีที่แล้ว

    Any resource on how to use websocket and get authentication and authorisation done??

  • @matlepak9694
    @matlepak9694 2 ปีที่แล้ว

    so is a websocket essentially a TCP connection that stays on?

  • @kehan6252
    @kehan6252 2 ปีที่แล้ว

    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.

  • @ridl27
    @ridl27 3 ปีที่แล้ว

    ty

  • @Rayrockny
    @Rayrockny 2 ปีที่แล้ว

    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?

  • @matthayden1979
    @matthayden1979 2 ปีที่แล้ว

    If both TCP and Websockets establishes a two way communication, what is the difference between them?

    • @chirag_ccp
      @chirag_ccp 2 ปีที่แล้ว +2

      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.

  • @kishalayray7570
    @kishalayray7570 3 ปีที่แล้ว

    Make a video on webhook
    With project

  • @hamaed19
    @hamaed19 ปีที่แล้ว

    👍👍

  • @codingdesires
    @codingdesires 3 ปีที่แล้ว

    Do you edit your own videos man?

  • @trustingod0
    @trustingod0 3 ปีที่แล้ว

    When is it more beneficial to use web sockets ?

    • @matthayden1979
      @matthayden1979 2 ปีที่แล้ว +1

      used in chat or messanger applications

  • @lakshman587
    @lakshman587 3 ปีที่แล้ว

    COMMENTED FOR T SHIRT GIVEAWAY!! :)

  • @aniketyadav6009
    @aniketyadav6009 ปีที่แล้ว

    Please provide in depth explanation, this video is not enough to get clear idea of a topic

  • @joanestradaramos1541
    @joanestradaramos1541 10 หลายเดือนก่อน

    i think you re confused about what's half duplex and full duplex

  • @hsngsoftware4380
    @hsngsoftware4380 3 ปีที่แล้ว

    Can you please show it in code ?

  • @harshitgoyal19
    @harshitgoyal19 3 ปีที่แล้ว

    To be honest, I am here for the GIVEAWAY 🤦‍♂️

  • @mysoregopinathshantanu8800
    @mysoregopinathshantanu8800 3 ปีที่แล้ว +1

    May the like be on this comment.

  • @dilipkk255
    @dilipkk255 ปีที่แล้ว

    Always assume a layman watching you and start

  • @saidakhmedagitaev
    @saidakhmedagitaev 3 ปีที่แล้ว

    I am not trying to be picky, but the music in the background is really distracting

  • @Samtoosoon
    @Samtoosoon 7 หลายเดือนก่อน

    Http protocol stateless horizontol scaling tcp connection duplex handshakes get/abc 2 way communication websocket tcp l4 dual channel stateful after handshake multiplr channels not allowed eebsocket not horizontally scalable

  • @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.

  • @aniketyadav6009
    @aniketyadav6009 ปีที่แล้ว

    Audio quality is poor

  • @dhruvabhattacharya
    @dhruvabhattacharya ปีที่แล้ว

    WhatsApp use web sockets.

  • @exe.m1dn1ght
    @exe.m1dn1ght ปีที่แล้ว

    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 !!!!

  • @Knowledgenfact
    @Knowledgenfact 11 หลายเดือนก่อน

    you explained nothing . total time waste..
    you are making just fool

  • @MrRuchir23
    @MrRuchir23 3 ปีที่แล้ว

    Great explaination , love these types of video
    Thanks @codedamn

  • @toranekosama
    @toranekosama ปีที่แล้ว

    is so great

  • @rokibDev
    @rokibDev 2 ปีที่แล้ว +1

    Amazing thank you for great explanation.