~/talk

SSE vs WebSockets vs Long Polling

Talkat JS Fest 2018 · on Saturday, 2018-03-31· [web-platform, nodejs]

Concrete comparison of SSE, Web-Sockets, and Long-Polling with code and a working demo: Node backends behind nginx, HTTP/2 multiplexing pushes many widget streams over single HTTP/2 multiplexed connection, SSE client uses EventSource and an event id resume so reconnects fetch missed messages, proxies drop idle streams (~15s) so demo uses keep-alive padding, gzip moved to nginx, and a test with five node processes yields only three live message sources during the demo, showing practicality and remaining edge cases.

AI-written summary · about

  1. 0:00Start
  2. 1:56TOPICS
  3. 2:50THE BUSINESS CASE
  4. 8:19MAXIMAL LATENCY
  5. 10:04CONNECTION ESTABLISHMENT
  6. 10:41PERFORMANCE
  7. 27:22THE DEVIL IS IN THE DETAILS
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.