WebSocket - The Easiest and Detailed Explanation

Поділитися
Вставка
  • Опубліковано 8 лют 2025
  • #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.

КОМЕНТАРІ • 29

  • @coding-with-yalco
    @coding-with-yalco  8 місяців тому +2

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

  • @bakerkawesa
    @bakerkawesa 8 місяців тому +12

    Awesome explanation. You have a knack for this.

  • @kamertonaudiophileplayer847
    @kamertonaudiophileplayer847 8 місяців тому +7

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

  • @sai_00983
    @sai_00983 8 місяців тому +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  8 місяців тому

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

  • @kaifahsan8459
    @kaifahsan8459 6 місяців тому +1

    Really great quality! Thank you.

  • @souptiksaha5
    @souptiksaha5 8 місяців тому +1

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

  • @Aucacoyan
    @Aucacoyan 8 місяців тому +2

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

  • @srinivasaguptamaram9335
    @srinivasaguptamaram9335 8 місяців тому +3

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

  • @weybansky
    @weybansky 8 місяців тому +1

    Nice illustrations. Earned a subscriber

  • @saideepesh6036
    @saideepesh6036 8 місяців тому +1

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

  • @mahmoudkhaled3961
    @mahmoudkhaled3961 8 місяців тому

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

  • @SajjadAhmed-e1n
    @SajjadAhmed-e1n 8 місяців тому +1

    extra ordinary explanation

  • @VigneshBhaskar
    @VigneshBhaskar 8 місяців тому +1

    Very informative. Thank you.

  • @karansmittal
    @karansmittal 8 місяців тому

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

  • @manishshaw2393
    @manishshaw2393 8 місяців тому +1

    great video , plz keep making videos.

  • @indianmuskofficial9278
    @indianmuskofficial9278 8 місяців тому +1

    please keep making

  • @vsnthdev
    @vsnthdev 8 місяців тому +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  8 місяців тому +1

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