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








