Long Polling, Websockets, Server Sent Events - Who Wins? | Systems Design with Ex-Google SWE

preview_player
Показать описание
Anyone want to smell my post onesie, drunk, thundering herd?
Рекомендации по теме
Комментарии
Автор

Really enjoying this content; you break the content down in a really approachable way!

I think the depth of info covered is pretty good too. Obviously not too detailed but enough to enable people to know what to search for if they decide they want to learn more.

matthewsaucedo
Автор

Hi, watched a few videos of yours.
Very nice job, helps me a lot!

ored
Автор

Hey Jordan
Thank you for this great content.
The notes you create while recording videos. Is there any way possible, you can share them?

ankitasajwan
Автор

Thank you! The SSE works like broadcast from server. So all clients gets the same data result. How to send data for specific clients, for exmaple who has subscription on category: "news". I write more in application layer.

povdata
Автор

I guess the websockets need to be sticky sessioned(a client being only connected to one of the horizontal scaled servers?), hence to keep it connected with the client & service...?
If so, in case of failure and how do we know which data to send again from the server?(I guess this question goes same for the UDP, how does the Netflix know I watched this video until certain time when the server that respond gets killed? If we sacrifice the reliability, i guess we can just restart from some random(But recent) time?).

PS. But again, thanks for the awesome video. Your my life savor and I mean it!(forgot to add this.)

sxwmlsq
Автор

Hey Jordan. A bit confused here about long polling (thanks for all the content btw):

If we long poll, don’t we also hold an open (though not persistent) connection? And if we need to reestablish it anyways, isn’t it twice the load on server? Both has to hold open connection and also receive a new request for each new data event?

Always thought that long polling was inefficient exactly for the reason of an open connection held on the server and that web sockets at least slightly decreased the load there

agent
Автор

How does server side event know which client to reestablish connection with? Do they maintain a list of clients?

mcee
Автор

Great content Jordan, thank you for all your videos. I was curious - are stock trading platforms or websites that display live updates (say sports sites with live scores, etc) using SSEs?

Nero
Автор

should i watch the newer versions of your videos or both the old and new versions? like for this topic, is it fine just to watch this vid or the old one

Gitsniks
Автор

I noticed in the old vid you mentioned WebSockets were the ones having thundering herb problem due to reconnects, while in this new vid you are saying only SSE will have this problem. Should we say they both have this problem?

zhonglin
Автор

Web2 browser scripting isn't software engineering, it's script kid engineering.

spokesperson_usa