WebSocket - The Easiest and Detailed Explanation

  Рет қаралды 5,951

Coding with Yalco

Coding with Yalco

Ай бұрын

#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 Ай бұрын
Videos related to API yalco.notion.site/Videos-related-to-API-a3c5cf9577db408a930509f0c9ff2a90?pvs=4
@kamertonaudiophileplayer847
@kamertonaudiophileplayer847 24 күн бұрын
I wrote websocket support in Java 10 years ago. It still works strong.
@bakerkawesa
@bakerkawesa Ай бұрын
Awesome explanation. You have a knack for this.
@coding-with-yalco
@coding-with-yalco Ай бұрын
Thank you!!
@LePhenixGD
@LePhenixGD 28 күн бұрын
agreed
@srinivasaguptamaram9335
@srinivasaguptamaram9335 29 күн бұрын
Nice videos, hoping going to get async communications JMS and Kafka videos
@Aucacoyan
@Aucacoyan 24 күн бұрын
Thank you! Your videos are very very clear and educational!
@souptiksaha5
@souptiksaha5 Ай бұрын
Your videos are awesome! We want more of such videos + some use cases implementations of these concepts as well !
@coding-with-yalco
@coding-with-yalco Ай бұрын
Thank you!!
@sai_00983
@sai_00983 25 күн бұрын
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 25 күн бұрын
I'm so glad to hear that it was helpful to you! Thank you!
@karansmittal
@karansmittal 23 күн бұрын
Really amazing content @coding-with-yalco. The understanding and assumptions taken are really easy to understand. Looking for more content from you.
@coding-with-yalco
@coding-with-yalco 22 күн бұрын
Thank you!!
@VigneshBhaskar
@VigneshBhaskar 25 күн бұрын
Very informative. Thank you.
@coding-with-yalco
@coding-with-yalco 25 күн бұрын
Thank you!!
@saideepesh6036
@saideepesh6036 24 күн бұрын
Amazing video, subscribed, please continue making content videos like this, Thanks
@coding-with-yalco
@coding-with-yalco 23 күн бұрын
Thank you!!
@indianmuskofficial9278
@indianmuskofficial9278 28 күн бұрын
please keep making
@weybansky
@weybansky 26 күн бұрын
Nice illustrations. Earned a subscriber
@coding-with-yalco
@coding-with-yalco 26 күн бұрын
Thank you!!
@mahmoudkhaled3961
@mahmoudkhaled3961 26 күн бұрын
You are so good with the explanation. Please keep up the good work
@coding-with-yalco
@coding-with-yalco 25 күн бұрын
Thank you!!
@manishshaw2393
@manishshaw2393 28 күн бұрын
great video , plz keep making videos.
@coding-with-yalco
@coding-with-yalco 28 күн бұрын
Thank you!
@user-sq1zq7rr3q
@user-sq1zq7rr3q 21 күн бұрын
extra ordinary explanation
@coding-with-yalco
@coding-with-yalco 20 күн бұрын
Thank you!
@vsnthdev
@vsnthdev Ай бұрын
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 Ай бұрын
Thank you! I subscribed your channel too! You can contact me at yalco@yalco.kr
Easily Understanding gRPC
8:40
Coding with Yalco
Рет қаралды 17 М.
What is a Protocol? (Deepdive)
18:14
LiveOverflow
Рет қаралды 157 М.
$10,000 Every Day You Survive In The Wilderness
26:44
MrBeast
Рет қаралды 139 МЛН
How One Line of Code Almost Blew Up the Internet
13:47
Kevin Fang
Рет қаралды 1,9 МЛН
How to scale WebSockets to millions of connections
14:01
Ably Realtime
Рет қаралды 20 М.
So You Think You Know Git - FOSDEM 2024
47:00
GitButler
Рет қаралды 991 М.
What is WebSocket? Why is it used & how is it different from HTTP?
33:23
WebRTC - The method of direct communication between clients
8:41
Coding with Yalco
Рет қаралды 1,4 М.
My Unconventional Coding Story | Self-Taught
27:14
Travis Media
Рет қаралды 551 М.
host ALL your AI locally
24:20
NetworkChuck
Рет қаралды 737 М.
Understanding B-Trees: The Data Structure Behind Modern Databases
12:39
What is REST API?
13:52
Coding with Yalco
Рет қаралды 3,4 М.
Ryan Dahl introduces JSR at DevWorld 2024
29:13
Deno
Рет қаралды 97 М.
$10,000 Every Day You Survive In The Wilderness
26:44
MrBeast
Рет қаралды 139 МЛН