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
コスト削減から「セキュリティと利便性」を担うプラットフォームへ
sansantech
PRO
3
1.3k
Introduction to Sansan for Engineers / エンジニア向け会社紹介
sansan33
PRO
6
67k
Agile Leadership Summit Keynote 2026
m_seki
1
430
Oracle Cloud Observability and Management Platform - OCI 運用監視サービス概要 -
oracle4engineer
PRO
2
14k
変化するコーディングエージェントとの現実的な付き合い方 〜Cursor安定択説と、ツールに依存しない「資産」〜
empitsu
4
1.3k
ブロックテーマでサイトをリニューアルした話 / 2026-01-31 Kansai WordPress Meetup
torounit
0
450
オープンウェイトのLLMリランカーを契約書で評価する / searchtechjp
sansan_randd
3
650
ZOZOにおけるAI活用の現在 ~開発組織全体での取り組みと試行錯誤~
zozotech
PRO
5
4.8k
usermode linux without MMU - fosdem2026 kernel devroom
thehajime
0
210
FinTech SREのAWSサービス活用/Leveraging AWS Services in FinTech SRE
maaaato
0
120
Amazon S3 Vectorsを使って資格勉強用AIエージェントを構築してみた
usanchuu
3
430
toCプロダクトにおけるAI機能開発のしくじりと学び / ai-product-failures-and-learnings
rince
6
5.5k
Featured
See All Featured
GraphQLとの向き合い方2022年版
quramy
50
14k
Designing for humans not robots
tammielis
254
26k
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
How GitHub (no longer) Works
holman
316
140k
Large-scale JavaScript Application Architecture
addyosmani
515
110k
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
110
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
1
120
More Than Pixels: Becoming A User Experience Designer
marktimemedia
3
320
My Coaching Mixtape
mlcsv
0
46
Unsuck your backbone
ammeep
671
58k
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
0
430
Facilitating Awesome Meetings
lara
57
6.7k
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