WebSocket - The Easiest and Detailed Explanation

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 พ.ค. 2024
  • #websocket #api #programming
    = = =
    The topic of this video is WebSocket. Traditional computer communication methods, such as HTTP, involve the client sending a request and the server responding, creating one-way communication. This model has limitations, especially in real-time applications like chat apps, where the server cannot notify the client of new messages without a client request.
    Polling and long polling are methods to address this, but they have drawbacks like delays and increased server load. WebSocket, however, allows bidirectional communication, similar to a phone call, enabling both the client and server to send messages freely and efficiently.
    WebSocket starts with an HTTP handshake, then switches to the WebSocket protocol for ongoing communication, reducing overhead compared to HTTP. It is more resource-efficient and suitable for real-time updates, unlike HTTP/2, which is not designed for long-term bidirectional communication. WebSocket uses TCP, ensuring data order and reliability, making it ideal for applications needing real-time communication, like online games and stock apps.
    However, WebSocket implementation can be complex, especially with load balancing, and message size limitations can be a concern. Security is also a consideration, requiring SSL/TLS for encryption. While WebSocket is less burdensome than polling, it still demands resources, and high user numbers can strain servers.
    The video concludes by hinting at exploring alternatives to WebSocket in future videos.

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

  • @coding-with-yalco
    @coding-with-yalco  26 วันที่ผ่านมา +1

    Videos related to API
    yalco.notion.site/Videos-related-to-API-a3c5cf9577db408a930509f0c9ff2a90?pvs=4

  • @kamertonaudiophileplayer847
    @kamertonaudiophileplayer847 19 วันที่ผ่านมา +6

    I wrote websocket support in Java 10 years ago. It still works strong.

  • @bakerkawesa
    @bakerkawesa 26 วันที่ผ่านมา +11

    Awesome explanation. You have a knack for this.

  • @sai_00983
    @sai_00983 20 วันที่ผ่านมา +1

    Nicely explained. Used websocket without knowing its purpose before but now I know the difference. Thank you. Keep doing these videos. The idea creating another character to ask questions from listener point of view is very good.

    • @coding-with-yalco
      @coding-with-yalco  20 วันที่ผ่านมา

      I'm so glad to hear that it was helpful to you! Thank you!

  • @Aucacoyan
    @Aucacoyan 19 วันที่ผ่านมา +2

    Thank you! Your videos are very very clear and educational!

  • @karansmittal
    @karansmittal 18 วันที่ผ่านมา

    Really amazing content @coding-with-yalco. The understanding and assumptions taken are really easy to understand. Looking for more content from you.

  • @souptiksaha5
    @souptiksaha5 26 วันที่ผ่านมา +1

    Your videos are awesome! We want more of such videos + some use cases implementations of these concepts as well !

  • @srinivasaguptamaram9335
    @srinivasaguptamaram9335 24 วันที่ผ่านมา +3

    Nice videos, hoping going to get async communications JMS and Kafka videos

  • @saideepesh6036
    @saideepesh6036 18 วันที่ผ่านมา +1

    Amazing video, subscribed, please continue making content videos like this, Thanks

  • @weybansky
    @weybansky 21 วันที่ผ่านมา +1

    Nice illustrations. Earned a subscriber

  • @mahmoudkhaled3961
    @mahmoudkhaled3961 21 วันที่ผ่านมา

    You are so good with the explanation. Please keep up the good work

  • @VigneshBhaskar
    @VigneshBhaskar 20 วันที่ผ่านมา +1

    Very informative. Thank you.

  • @user-sq1zq7rr3q
    @user-sq1zq7rr3q 16 วันที่ผ่านมา +1

    extra ordinary explanation

  • @indianmuskofficial9278
    @indianmuskofficial9278 23 วันที่ผ่านมา +1

    please keep making

  • @manishshaw2393
    @manishshaw2393 23 วันที่ผ่านมา +1

    great video , plz keep making videos.

  • @vsnthdev
    @vsnthdev 26 วันที่ผ่านมา +3

    Just remember that one day your channel is going to be at the top 🙌
    Absolutely amazing videos, I have been sharing across my friends 🚀
    Is there any way I can contact you?

    • @coding-with-yalco
      @coding-with-yalco  26 วันที่ผ่านมา +1

      Thank you! I subscribed your channel too!
      You can contact me at yalco@yalco.kr