馬丁·喬夫SSE與WebSockets與長輪詢。 JS節2018



即將舉行的JS會議:
2020年JS音樂節-4月3-4日,烏克蘭基輔
詳細信息和門票:http://bit.ly/2EoHvQo

在烏克蘭基輔舉行的JS Fest會議上的演講。
演示:https://www.slideshare.net/JSFestUA/js-fest-2018-martin-chaov-sse-vs-websockets-vs-long-polling
FB:https://www.facebook.com/JSFestua/
網站:http://jsfest.com.ua/

如果您有大量數據要快速傳遞,則可以嘗試使用Web套接字來實現。但是,套接字很難維護和擴展,更不用說多重了。在本演示中,我將比較三種將數據傳遞到前端的方法。伺服器發送的事件使您能夠以較少的基礎架構開銷交付內容。在本演講中,我將介紹SSE,長輪詢和Web套接字的優缺點,包括技術演示。我們將稍微介紹一下無連接推送和移動網路的可用優化。 。

3 comments
  1. Thank for your video,
    I read a book of SSE where the backend server' code use "while" to push the information from the server to the client , but others programmer don't recomment the use of "while" to send information from the server to the client, because it take a lot of resource of the server.

    Can you tell me if that it is true?

Comments are closed.