HTTP/2 從零到一

什麼是 HTTP/2?

為什麼我們需要 HTTP/2?

左: 2010 ~ 2019 網頁渲染所需下載 kb / 右: 2010 ~ 2019 網頁渲染所需 requests 數 / Source: https://httparchive.org/reports/state-of-the-web

HTTP/2 比 HTTP/1.x 好在哪?

優點

Request Multiplexing 多路複用

Header Compression 頭部壓縮

Binary Protocol 二進位協定

HTTP/2 Server Push 伺服器推送

HTTP 2 在各大 browser 的支援度

https://caniuse.com/#feat=http2
Source: https://caniuse.com/#feat=http2

如何在 Node.js 中使用 HTTP/2

參考

--

--

目前在英國倫敦的台灣人軟體工程師,曾經待過台灣、新加坡、荷蘭。希望透過分享,來產生更多思維碰撞💥 | LinkedIn: @hieven

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Even Chang

目前在英國倫敦的台灣人軟體工程師,曾經待過台灣、新加坡、荷蘭。希望透過分享,來產生更多思維碰撞💥 | LinkedIn: @hieven