Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
SPDY
Search
HakumaNatata
April 22, 2013
Technology
110
0
Share
SPDY
SPDY - a new open networking protocol
HakumaNatata
April 22, 2013
More Decks by HakumaNatata
See All by HakumaNatata
Introduction to NMAP
natata
0
60
How to trace code
natata
0
50
HTML5 canvas game
natata
0
70
Introduction to HTML5
natata
0
40
PHP with Smarty
natata
0
35
Other Decks in Technology
See All in Technology
形式手法特論:公平性制約の位相的特徴づけ #kernelvm / Kernel VM Study Kansai 12th
ytaka23
1
710
さきさん文庫の書籍ができるまで
sakiengineer
0
340
大学生が本気でDatabricksを活用してDiscordサークルをデータ駆動させてみた
phantomjuju
1
340
Djangoユーザが知っ得なPostgreSQL機能 - 設計の選択肢を増やす / Djang-use-PostgreSQL
soudai
PRO
0
120
Chart.js が簡単に使えるようになっていたので OGP 画像生成に使った話
kamekyame
0
140
美味しいスイスチーズを作ろう🧀🐭
taigamikami
1
230
AIプラットフォームを運用し続けるための可観測性
tanimuyk
4
1.1k
Databricks における 生成AIガバナンスの実践
taka_aki
1
280
関西に縁あるMicrosoft MVPsが語るCopilotの未来
kasada
0
1k
Unlocking the Apps
pimterry
0
190
生成 AI × MCP で切り拓く次世代 SRE!自律型運用への挑戦と開発者体験の進化
_awache
0
120
「気づいたら仕事が終わっている」バクラクAIエージェント本番運用の裏側 / layerx-bakuraku-aie2026
yuya4
18
9.1k
Featured
See All Featured
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
1
320
Six Lessons from altMBA
skipperchong
29
4.3k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
34
2.8k
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
150
The browser strikes back
jonoalderson
0
1.1k
YesSQL, Process and Tooling at Scale
rocio
174
15k
Side Projects
sachag
455
43k
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
190
HTML-Aware ERB: The Path to Reactive Rendering @ RubyCon 2026, Rimini, Italy
marcoroth
1
140
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
22k
Java REST API Framework Comparison - PWX 2021
mraible
34
9.3k
Transcript
SPDY 軟工一 彭博涵
先別說 SPDY 了,你聽過 HTTP 嗎? 2
HTTP & TCP • Hypertext Transfer Protocol (HTTP) – h;p://en.wikipedia.org/wiki/
Hypertext_Transfer_Protocol • Transmission Control Protocol (TCP) – h;p://en.wikipedia.org/wiki/ Transmission_Control_Protocol 3
HTTP 有什麼問題? • One request, one connecLon • Exclusively
client-‐iniLated requests • Uncompressed request and response headers • Redundant headers • OpLonal data compression 4
HTTP/1.0+ • Persistent connecLon 5
HTTP/1.1 • pipelining 6
MulLple TCP connecLons 7
MulLple TCP connecLons (cont.) 8 Request HTML Request JS
Request CSS Request CSS Request image Request image Request image Request image Request image Request image Request image Request image Request image
But! 9
Slow start 10
MulLple TCP connecLons (cont.) 11 Request HTML Request JS
Request CSS Request CSS Request image Request image Request image Request image Request image Request image Request image Request image Request image
Header • 重複 • 無法壓縮 12
速度有這麼重要嗎? 13
14
研究指出 • Amazon 的網頁載入時間每多一秒,該公司 的年度營收就減少 16 億美元 • Google
的搜尋時間每多 0.4 秒,每天的搜尋 次數就會減少 8 百萬。 15
SPDY 16
SPDY 是什麼? • Open networking protocol • Developed primarily at
Google • For transporLng web content • Improve latency at the transport layer 17
Goal of SPDY • 減少 50% 網頁載入時間 • 降低佈署複雜度
• 避免網頁做任何修改 • 減少 HTTP 同時使用的頻寬 18
特點 • SSL • 可透過單一 TCP session 同時傳送多個 HTTP
request • 壓縮 (header & data) • Server push 19
SSL • 雖然比較慢 • 需要登入的網站那麼多 • 好 SSL,不用嗎?
20
One TCP session, mulLplex streams 21
Control frame and data frame 22 Control frame Data
frame
Control frame • Control bit : Control frame(1) or data
frame(0) • Version: SPDY 的版本 • Type: control frame 的種類 • Flags • Length • Data 23
Data frame • Control bit • Stream-‐ID: 31-‐bit. 偶數:
server, 奇數: client • Flags : 0x01 = FLAG_FIN • Length • Data 24
示意圖 25
壓縮 • zlib compression 26
Server push • 直接將資源推送給 client • Server 假設所推送的資源是 client
需要的 27
SPDY 優點 • Frame 可以混雜 • 一個 TCP connecLon
• Slow start 一次 • 記住上次的 CWND 28
誰在用 SPDY? • Google • Twi;er •
Wordpress.com • LINE • Facebook • …etc 29
Server • Apache mod_spdy – h;ps://code.google.com/p/mod-‐spdy/ • Nginx
– h;p://nginx.org/patches/spdy/README.txt • Node-‐spdy – h;ps://github.com/indutny/node-‐spdy 30
Browser • h;p://caniuse.com/spdy 31
Is it speedy? • h;ps://chrome.google.com/webstore/detail/ spdy-‐indicator • h;ps://addons.mozilla.org/en-‐us/firefox/ addon/spdy-‐indicator/
32
Future • HTML 2.0 33
參考資料 • h;p://www.slideshare.net/ihower/a-‐brief-‐ introducLon-‐to-‐spdy-‐h;p20 • h;p://www.chromium.org/spdy/spdy-‐ protocol/spdy-‐protocol-‐dram3 •
h;p://www.chromium.org/spdy/spdy-‐ whitepaper 34
• Thank you for listening 35