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
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
59
How to trace code
natata
0
49
HTML5 canvas game
natata
0
69
Introduction to HTML5
natata
0
39
PHP with Smarty
natata
0
35
Other Decks in Technology
See All in Technology
AI前提とはどういうことか
daisuketakeda
0
120
Cortex Code君、今日から内製化支援担当ね。
coco_se
0
280
バックオフィスPJのPjMをコーポレートITが担うとうまくいく3つの理由
yueda256
1
280
Webアクセシビリティは“もしも”に備える設計
tomokusaba
0
170
最大のアウトプット術は問題を作ること
ryoaccount
0
310
プロダクトを育てるように生成AIによる開発プロセスを育てよう
kakehashi
PRO
1
770
サイボウズ 開発本部採用ピッチ / Cybozu Engineer Recruit
cybozuinsideout
PRO
10
77k
Oracle AI Database@Google Cloud:サービス概要のご紹介
oracle4engineer
PRO
6
1.3k
チームで育てるAI自走環境_20260409
fuktig
0
850
2026-04-02 IBM Bobオンボーディング入門
yutanonaka
0
240
今年60歳のおっさんCBになる
kentapapa
1
200
Babylon.js を使って試した色々な内容 / Various things I tried using Babylon.js / Babylon.js 勉強会 vol.5
you
PRO
0
240
Featured
See All Featured
The Cost Of JavaScript in 2023
addyosmani
55
9.8k
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
1
340
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
750
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
0
260
Ten Tips & Tricks for a 🌱 transition
stuffmc
0
95
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.2k
Prompt Engineering for Job Search
mfonobong
0
250
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
49
9.9k
Designing Experiences People Love
moore
143
24k
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.1k
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
62
53k
Writing Fast Ruby
sferik
630
63k
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