~/talk

HTTP/2 with Node.js

Talkat FOSSASIA Summit 2017 · 2017-03-17..03-19· [nodejs, web-platform]
slides:none on file

Overview of current Node options: two pure-JavaScript HTTP/2 npm libraries work for experiments but show crashes and severe slowdown under sustained load (hangs around ~2,000 req/s) and limited server push control. A native C implementation built on nghttp2 lands as an experimental Node fork with an API in flux and TLS-required servers. Benchmarks using h2load and PM2 clustering reach about 18,000 req/s on a local hello‑world, outperforming nginx’s ~12,000 in that microtest.

AI-written summary · about

  1. 0:00Intro
  2. 1:02WHY FIX HTTP/1? Inefficient use of TCP/IP Blocking requests/responses Plain text, new line delimited Uncompressed headers
  3. 3:23NEW IN HTTP/2! Interleaved streams Stream prioritisation Binary frames Header compression
  4. 9:18HTTP/2 NATIVE IN NODE CORE?
  5. 9:30IS H2 A VERSION BUMP? OR A NEW PROTOCOL?
  6. 11:35WORK IN PROGRESS SERVER CLIENT
  7. 13:00BASED ON nghttp2 Just like apache2, curl. Low level, C language binding.
  8. 15:43BUILDING NODE.JS WITH HTTP/2
  9. 17:08"HELLO, WORLD!"
  10. 18:25PERFORMANCE BENCHMARK
~/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.