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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
HakumaNatata
April 22, 2013
Technology
0
110
SPDY
SPDY - a new open networking protocol
HakumaNatata
April 22, 2013
Tweet
Share
More Decks by HakumaNatata
See All by HakumaNatata
Introduction to NMAP
natata
0
59
How to trace code
natata
0
49
HTML5 canvas game
natata
0
69
Introduction to HTML5
natata
0
38
PHP with Smarty
natata
0
35
Other Decks in Technology
See All in Technology
All About Sansan – for New Global Engineers
sansan33
PRO
1
1.3k
セキュリティについて学ぶ会 / 2026 01 25 Takamatsu WordPress Meetup
rocketmartue
1
280
OCI Database Management サービス詳細
oracle4engineer
PRO
1
7.3k
日本の85%が使う公共SaaSは、どう育ったのか
taketakekaho
1
140
月間数億レコードのアクセスログ基盤を無停止・低コストでAWS移行せよ!アプリケーションエンジニアのSREチャレンジ💪
miyamu
0
800
学生・新卒・ジュニアから目指すSRE
hiroyaonoe
2
530
日本語テキストと音楽の対照学習の技術とその応用
lycorptech_jp
PRO
1
420
会社紹介資料 / Sansan Company Profile
sansan33
PRO
15
400k
M&A 後の統合をどう進めるか ─ ナレッジワーク × Poetics が実践した組織とシステムの融合
kworkdev
PRO
1
400
Contract One Engineering Unit 紹介資料
sansan33
PRO
0
13k
広告の効果検証を題材にした因果推論の精度検証について
zozotech
PRO
0
100
2026年、サーバーレスの現在地 -「制約と戦う技術」から「当たり前の実行基盤」へ- /serverless2026
slsops
2
210
Featured
See All Featured
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
0
1.1k
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
0
290
Optimizing for Happiness
mojombo
379
71k
Code Review Best Practice
trishagee
74
20k
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
450
Context Engineering - Making Every Token Count
addyosmani
9
650
My Coaching Mixtape
mlcsv
0
46
The Cost Of JavaScript in 2023
addyosmani
55
9.5k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
34k
[RailsConf 2023] Rails as a piece of cake
palkan
59
6.3k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.4k
Bioeconomy Workshop: Dr. Julius Ecuru, Opportunities for a Bioeconomy in West Africa
akademiya2063
PRO
1
54
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