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
HTTP/2
Search
Arnout Engelen
August 21, 2015
Technology
0
69
HTTP/2
Some notes after a day of playing with HTTP/2
Arnout Engelen
August 21, 2015
Tweet
Share
More Decks by Arnout Engelen
See All by Arnout Engelen
Typesetting Code
raboof
0
93
Sandstorm.io
raboof
0
56
JVM Hacking
raboof
0
290
Heating Up!
raboof
0
42
CRDTs Illustrated - StrangeLoop2015
raboof
0
260
Unikernels - Dutch Devops Engineers workshop
raboof
0
120
akka-persistence
raboof
0
45
Kamon
raboof
0
98
Slim table types (FitNesse meetup)
raboof
0
45
Other Decks in Technology
See All in Technology
LeSSに潜む「隠れWF病」とその処方箋
lycorptech_jp
PRO
2
110
ガチ勢によるPipeCD運用大全〜滑らかなCI/CDを添えて〜 / ai-pipecd-encyclopedia
cyberagentdevelopers
PRO
2
160
Jr. Championsになって、強く連携しながらAWSをもっと使いたい!~AWSに対する期待と行動~
amixedcolor
0
100
Nix入門パラダイム編
asa1984
2
170
グローバル展開を見据えたサービスにおける機械翻訳プラクティス / dp-ai-translating
cyberagentdevelopers
PRO
1
120
pandasはPolarsに性能面で追いつき追い越せるのか
vaaaaanquish
3
1.4k
[PyCon Korea 2024] Lightning Talk: PyPI패키지를 의심하세요
studioego
PRO
0
130
現地でMeet Upをやる場合の注意点〜反省点を添えて〜
shotashiratori
0
280
Railway Oriented Programming を オニオンアーキテクチャに適用する by kotlin-result / Railway Oriented Programming in Onion Architecture by kotlin-result
yuitosato
2
240
小規模に始めるデータメッシュとデータガバナンスの実践
kimujun
3
380
クラシルの現在とこれから
am1157154
1
350
ネット広告に未来はあるか?「3rd Party Cookie廃止とPrivacy Sandboxの効果検証の裏側」 / third-party-cookie-privacy
cyberagentdevelopers
PRO
1
100
Featured
See All Featured
Building a Scalable Design System with Sketch
lauravandoore
459
33k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
41
2.1k
Code Reviewing Like a Champion
maltzj
519
39k
The Straight Up "How To Draw Better" Workshop
denniskardys
232
140k
We Have a Design System, Now What?
morganepeng
50
7.2k
Building Applications with DynamoDB
mza
90
6k
The Language of Interfaces
destraynor
154
24k
The Cost Of JavaScript in 2023
addyosmani
45
6.5k
Optimizing for Happiness
mojombo
376
69k
Intergalactic Javascript Robots from Outer Space
tanoku
268
27k
The World Runs on Bad Software
bkeepers
PRO
65
11k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
167
49k
Transcript
HTTP/2 Marc, Arnout, Nanne, Arnold
HTTP/2 in the wild • Used by Twitter and Google
(heavily) • Browsers support it ◦ Chrome (also on mobile) ◦ Firefox ◦ IE11 on Windows 10 ◦ MS Edge ◦ Safari (not on mobile) ◦ Opera
HTTP/2 • RFC 7540 standard since May 2015 • Multiplex
all requests over 1 TCP socket ◦ Better parallel requests • Server Push ◦ Push resources client might need later
HTTP/2 in Go • https://http2.golang.org/ • Nice demo of parallel
requests ◦ http://http2.golang.org/gophertiles?latency=200
Our goals for today • Nice demo of Server Push
in go http2 ◦ Static resources (img, css, js) ◦ Ajax resources • Investigate writing http2-server ◦ complex protocol • Investigate java support ◦ Netty, Jetty, Undertow, OkHttp, gRPC
Demo! • Server push indeed reduces load time :)
Lessons Learned: HTTP/2 • Invisible to user (https) ◦ You
are already using it • Basic advantages can be achieved today ◦ With few application-level changes • Push works for both static & ajax resources ◦ But requires extension of current server-side api’s
Lessons Learned: HTTP/2 • Server Push is NOT an equivalent
of websockets or push notifications • Debugging is tricky ◦ chrome://net-internals ◦ Developer Tools can be confusing
Lessons Learned: go http2 • go http2 does not yet
expose Server Push ◦ But a PR is in the works ◦ Which manages to break Firefox(!)
Questions • Proxy support? • Amazon? •