Тёмный

Google SWE teaches systems design | EP38: WebSockets, Long Polling, Server Sent Events 

Jordan has no life
Подписаться 53 тыс.
Просмотров 5 тыс.
50% 1

Опубликовано:

 

20 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 27   
@simin2371
@simin2371 2 года назад
I watched several talks from whatsapp, netflix and random articles online about how push notification works. Got a vague idea about long poll and websocket/sse. but still couldn't sort their pros & cons out clearly....until I found your channel! this is all I need. I could have saved 5 hours! Awesome work! This channel is pure gold and I'm sure people will realize it soon.
@jordanhasnolife5163
@jordanhasnolife5163 2 года назад
Thanks man! I hope so :)
@user-jt5nd3yq4u
@user-jt5nd3yq4u 6 месяцев назад
This was really great topic; much needed one! Thanks
@khushbuchoudhary5185
@khushbuchoudhary5185 Год назад
One of the best video on this topic
@hazemabdelalim5432
@hazemabdelalim5432 Год назад
The server can have way more than 65k active connection , this limit is per IP ( user IP ) so one user can have maximum 65k open connection , but overall the server has no limit of connections , only the resources ( CPU and memory ) are the limits .
@jordanhasnolife5163
@jordanhasnolife5163 Год назад
Thanks for the info!
@hazemabdelalim5432
@hazemabdelalim5432 Год назад
@@jordanhasnolife5163 you are welcome buddy , i love your videos . keep it up
@prateeksaxena5307
@prateeksaxena5307 2 года назад
very well explained...thanks for making such awesome content
@qinghaohou4505
@qinghaohou4505 2 года назад
Thank you for the nice video! Quick question: in case of web socket, can we put a load balancer in front of the servers to prevent thundering herd? Why do we have to manually configure the routing?
@jordanhasnolife5163
@jordanhasnolife5163 2 года назад
Basically websockets are persistent while long polling isn't so they'll gradually break and reconnect meaning that they won't all be connected to the dying server at once and will be load balanced throughout whereas websockets will all try to reconnect at the same time
@qinghaohou4505
@qinghaohou4505 2 года назад
@@jordanhasnolife5163 got it, thanks!
@AnilYadav-xg5iw
@AnilYadav-xg5iw Год назад
Just a small doubt , for a client connected to server through a web-socket, and lets say server goes down and socket connection breaks, and when server is up again the client automatically creates a socket connection , is this new socket the same as previously broken socket?If its a new socket does previous one gets garbage collected?
@jordanhasnolife5163
@jordanhasnolife5163 Год назад
Sounds pretty reasonable to me that it may be a new one
@2sourcerer
@2sourcerer 2 месяца назад
About server handling 65,000 active connection limit, isn't it just port 443 and can handle any number of incoming client connections, limited by system resources and the number of file descriptors available?
@jordanhasnolife5163
@jordanhasnolife5163 2 месяца назад
I think the reality is that a port can handle multiple connections and so it's not really a hard limit and you should go by load
@2sourcerer
@2sourcerer 2 месяца назад
@@jordanhasnolife5163 Thanks for the clarification.
@yatharthv
@yatharthv Год назад
@jordanhasnolife5163 can you please also explain web hooks and how they are different from Server sent events?
@jordanhasnolife5163
@jordanhasnolife5163 Год назад
Webhooks arejust like using someone else's http link to make an HTTP call to their server, not really a realtime thing
@iiimiiim
@iiimiiim Год назад
Thank you!
@marklarization
@marklarization 2 года назад
How about webhooks?
@jordanhasnolife5163
@jordanhasnolife5163 2 года назад
Webhooks are kinda bs: it's really just a fancy way to describe one server calling an endpoint on another server
@marklarization
@marklarization 2 года назад
@@jordanhasnolife5163 worth mentioning in a system design interview?
@jordanhasnolife5163
@jordanhasnolife5163 2 года назад
@@marklarization Honestly probably not as most people are only concerned with realtime updates in these interviews as they pertain to sending them from server to client.
@raj_kundalia
@raj_kundalia Год назад
thank you!
@jordanhasnolife5163
@jordanhasnolife5163 Год назад
Speeding through!
@raj_kundalia
@raj_kundalia Год назад
@@jordanhasnolife5163 try to watch 1 a day, helps me learn something new everyday!
Далее
Google SWE teaches systems design | EP39: Apache Spark
9:05
Кто сделал Катар богатым? #shorts
0:59
mood всех бабушек
0:11
Просмотров 396 тыс.
Server-Sent Events Crash Course
29:48
Просмотров 94 тыс.
HTTP Polling vs SSE vs WebSocket vs WebHooks
22:22
Просмотров 13 тыс.
How to scale WebSockets to millions of connections
14:01
98% Cloud Cost Saved By Writing Our Own Database
21:45
Просмотров 391 тыс.
Кто сделал Катар богатым? #shorts
0:59