HTTP/2, why upgrading the web? - #devoxxPL flavor
-
Upload
quentin-adam -
Category
Technology
-
view
397 -
download
3
Transcript of HTTP/2, why upgrading the web? - #devoxxPL flavor
![Page 2: HTTP/2, why upgrading the web? - #devoxxPL flavor](https://reader037.fdocuments.in/reader037/viewer/2022110313/55c1e145bb61ebf6218b468e/html5/thumbnails/2.jpg)
Quentin ADAM from the Clever Cloud
@waxzce on twitter – github- soundcloud – instagram ….
WHO AM I ?
![Page 4: HTTP/2, why upgrading the web? - #devoxxPL flavor](https://reader037.fdocuments.in/reader037/viewer/2022110313/55c1e145bb61ebf6218b468e/html5/thumbnails/4.jpg)
And learn a lot of things about your code, apps, and good/bad design…
KEEP YOUR APPS ONLINE. MADE WITH NODE.JS, SCALA, JAVA, RUBY, PHP, PYTHON, GO…
![Page 5: HTTP/2, why upgrading the web? - #devoxxPL flavor](https://reader037.fdocuments.in/reader037/viewer/2022110313/55c1e145bb61ebf6218b468e/html5/thumbnails/5.jpg)
AND LEARN A LOT OF THINGS ABOUT YOUR CODE, APPS, AND GOOD/BAD DESIGN…
![Page 6: HTTP/2, why upgrading the web? - #devoxxPL flavor](https://reader037.fdocuments.in/reader037/viewer/2022110313/55c1e145bb61ebf6218b468e/html5/thumbnails/6.jpg)
WHAT’S THE HTTP JOB ?
![Page 7: HTTP/2, why upgrading the web? - #devoxxPL flavor](https://reader037.fdocuments.in/reader037/viewer/2022110313/55c1e145bb61ebf6218b468e/html5/thumbnails/7.jpg)
![Page 8: HTTP/2, why upgrading the web? - #devoxxPL flavor](https://reader037.fdocuments.in/reader037/viewer/2022110313/55c1e145bb61ebf6218b468e/html5/thumbnails/8.jpg)
HTTP1 IS TEXT PROTOCOL
![Page 9: HTTP/2, why upgrading the web? - #devoxxPL flavor](https://reader037.fdocuments.in/reader037/viewer/2022110313/55c1e145bb61ebf6218b468e/html5/thumbnails/9.jpg)
REQUEST <-> RESPONSE MODEL
![Page 10: HTTP/2, why upgrading the web? - #devoxxPL flavor](https://reader037.fdocuments.in/reader037/viewer/2022110313/55c1e145bb61ebf6218b468e/html5/thumbnails/10.jpg)
THE 4 PARTS
Verb Resource
Headers Body (optional)
![Page 11: HTTP/2, why upgrading the web? - #devoxxPL flavor](https://reader037.fdocuments.in/reader037/viewer/2022110313/55c1e145bb61ebf6218b468e/html5/thumbnails/11.jpg)
THE SPEC IS MADE OF OPTIONS AND ABILITY TO EXTENDS
![Page 12: HTTP/2, why upgrading the web? - #devoxxPL flavor](https://reader037.fdocuments.in/reader037/viewer/2022110313/55c1e145bb61ebf6218b468e/html5/thumbnails/12.jpg)
FASTER FASTER FASTER
![Page 13: HTTP/2, why upgrading the web? - #devoxxPL flavor](https://reader037.fdocuments.in/reader037/viewer/2022110313/55c1e145bb61ebf6218b468e/html5/thumbnails/13.jpg)
// REQUESTS ?
![Page 14: HTTP/2, why upgrading the web? - #devoxxPL flavor](https://reader037.fdocuments.in/reader037/viewer/2022110313/55c1e145bb61ebf6218b468e/html5/thumbnails/14.jpg)
HTTP PIPELINING
![Page 15: HTTP/2, why upgrading the web? - #devoxxPL flavor](https://reader037.fdocuments.in/reader037/viewer/2022110313/55c1e145bb61ebf6218b468e/html5/thumbnails/15.jpg)
THE HACKS WE ARE DOING EVERYDAY WITHOUT THINKING TO IMPROVE PERFORMANCES
![Page 16: HTTP/2, why upgrading the web? - #devoxxPL flavor](https://reader037.fdocuments.in/reader037/viewer/2022110313/55c1e145bb61ebf6218b468e/html5/thumbnails/16.jpg)
MULTIPLE DOMAIN NAMES FOR MULTIPLES STREAMS
![Page 17: HTTP/2, why upgrading the web? - #devoxxPL flavor](https://reader037.fdocuments.in/reader037/viewer/2022110313/55c1e145bb61ebf6218b468e/html5/thumbnails/17.jpg)
STATIC ASSETS DOMAIN NAME FOR FAT COOKIES PROBLEM MANAGEMENT
![Page 18: HTTP/2, why upgrading the web? - #devoxxPL flavor](https://reader037.fdocuments.in/reader037/viewer/2022110313/55c1e145bb61ebf6218b468e/html5/thumbnails/18.jpg)
COMET/WEBSOCKET/PULLING/SERVER SENT ENVENT… BIDIRECTIONAL DATA STREAMS HACKS
![Page 19: HTTP/2, why upgrading the web? - #devoxxPL flavor](https://reader037.fdocuments.in/reader037/viewer/2022110313/55c1e145bb61ebf6218b468e/html5/thumbnails/19.jpg)
SO, WE NEED A NEW VERSION OF HTTP
![Page 20: HTTP/2, why upgrading the web? - #devoxxPL flavor](https://reader037.fdocuments.in/reader037/viewer/2022110313/55c1e145bb61ebf6218b468e/html5/thumbnails/20.jpg)
WHO IS IN CHARGE ?
![Page 21: HTTP/2, why upgrading the web? - #devoxxPL flavor](https://reader037.fdocuments.in/reader037/viewer/2022110313/55c1e145bb61ebf6218b468e/html5/thumbnails/21.jpg)
HTTPBIS WORKING GROUP
![Page 22: HTTP/2, why upgrading the web? - #devoxxPL flavor](https://reader037.fdocuments.in/reader037/viewer/2022110313/55c1e145bb61ebf6218b468e/html5/thumbnails/22.jpg)
FIRST HTTP/2 DRAFT IS SPDY/3 DRAFT
![Page 23: HTTP/2, why upgrading the web? - #devoxxPL flavor](https://reader037.fdocuments.in/reader037/viewer/2022110313/55c1e145bb61ebf6218b468e/html5/thumbnails/23.jpg)
BUILD ON SOMETHING
![Page 24: HTTP/2, why upgrading the web? - #devoxxPL flavor](https://reader037.fdocuments.in/reader037/viewer/2022110313/55c1e145bb61ebf6218b468e/html5/thumbnails/24.jpg)
SO WHAT IS IN THE BOX ?
![Page 25: HTTP/2, why upgrading the web? - #devoxxPL flavor](https://reader037.fdocuments.in/reader037/viewer/2022110313/55c1e145bb61ebf6218b468e/html5/thumbnails/25.jpg)
HTTP/2 IS A BINARY PROTOCOL
![Page 26: HTTP/2, why upgrading the web? - #devoxxPL flavor](https://reader037.fdocuments.in/reader037/viewer/2022110313/55c1e145bb61ebf6218b468e/html5/thumbnails/26.jpg)
HHTP/1 + COMPRESSION + SSL = ~BINARY
![Page 27: HTTP/2, why upgrading the web? - #devoxxPL flavor](https://reader037.fdocuments.in/reader037/viewer/2022110313/55c1e145bb61ebf6218b468e/html5/thumbnails/27.jpg)
BINARY PROTOCOL ARE SAFER, EASER TO PARSE, CONCISE…
![Page 28: HTTP/2, why upgrading the web? - #devoxxPL flavor](https://reader037.fdocuments.in/reader037/viewer/2022110313/55c1e145bb61ebf6218b468e/html5/thumbnails/28.jpg)
WIRESHARK FOR ALL
![Page 29: HTTP/2, why upgrading the web? - #devoxxPL flavor](https://reader037.fdocuments.in/reader037/viewer/2022110313/55c1e145bb61ebf6218b468e/html5/thumbnails/29.jpg)
WHAT IS WIRESHARK ?
Your app Wireshark System Network card
![Page 30: HTTP/2, why upgrading the web? - #devoxxPL flavor](https://reader037.fdocuments.in/reader037/viewer/2022110313/55c1e145bb61ebf6218b468e/html5/thumbnails/30.jpg)
BUILD ONLY 1 TCP CONNECTION
![Page 31: HTTP/2, why upgrading the web? - #devoxxPL flavor](https://reader037.fdocuments.in/reader037/viewer/2022110313/55c1e145bb61ebf6218b468e/html5/thumbnails/31.jpg)
PUT SOME STEAMS IN ONE CONNECTION
![Page 32: HTTP/2, why upgrading the web? - #devoxxPL flavor](https://reader037.fdocuments.in/reader037/viewer/2022110313/55c1e145bb61ebf6218b468e/html5/thumbnails/32.jpg)
STREAMS~ 1 HTTP/1 REQUEST = 1 HTTP/2 STREAM
![Page 33: HTTP/2, why upgrading the web? - #devoxxPL flavor](https://reader037.fdocuments.in/reader037/viewer/2022110313/55c1e145bb61ebf6218b468e/html5/thumbnails/33.jpg)
STREAMS ARE BUILT OF FRAMES
![Page 34: HTTP/2, why upgrading the web? - #devoxxPL flavor](https://reader037.fdocuments.in/reader037/viewer/2022110313/55c1e145bb61ebf6218b468e/html5/thumbnails/34.jpg)
FRAMES
Content a.html #1
Content dog.gif #1
Content a.html #2
Content dog.gif #2
Content a.html #4
Content a.html #3
Content cat.gif #1
Content dog.gif #4 …
![Page 35: HTTP/2, why upgrading the web? - #devoxxPL flavor](https://reader037.fdocuments.in/reader037/viewer/2022110313/55c1e145bb61ebf6218b468e/html5/thumbnails/35.jpg)
BINARY GOODNESS => FRAMES IS EASY
![Page 36: HTTP/2, why upgrading the web? - #devoxxPL flavor](https://reader037.fdocuments.in/reader037/viewer/2022110313/55c1e145bb61ebf6218b468e/html5/thumbnails/36.jpg)
STREAMS PRIORITY
![Page 37: HTTP/2, why upgrading the web? - #devoxxPL flavor](https://reader037.fdocuments.in/reader037/viewer/2022110313/55c1e145bb61ebf6218b468e/html5/thumbnails/37.jpg)
IMPROVE THE BROWSER WATERFALL WITH STREAM PRIORITY
![Page 38: HTTP/2, why upgrading the web? - #devoxxPL flavor](https://reader037.fdocuments.in/reader037/viewer/2022110313/55c1e145bb61ebf6218b468e/html5/thumbnails/38.jpg)
PUSH FROM THE SERVER A RESOURCE TO THE CACHE
![Page 39: HTTP/2, why upgrading the web? - #devoxxPL flavor](https://reader037.fdocuments.in/reader037/viewer/2022110313/55c1e145bb61ebf6218b468e/html5/thumbnails/39.jpg)
USER XP WILL BE BETTER
![Page 40: HTTP/2, why upgrading the web? - #devoxxPL flavor](https://reader037.fdocuments.in/reader037/viewer/2022110313/55c1e145bb61ebf6218b468e/html5/thumbnails/40.jpg)
HEADERS COMPRESSIONS
![Page 41: HTTP/2, why upgrading the web? - #devoxxPL flavor](https://reader037.fdocuments.in/reader037/viewer/2022110313/55c1e145bb61ebf6218b468e/html5/thumbnails/41.jpg)
HPACK
*new RFC*
![Page 42: HTTP/2, why upgrading the web? - #devoxxPL flavor](https://reader037.fdocuments.in/reader037/viewer/2022110313/55c1e145bb61ebf6218b468e/html5/thumbnails/42.jpg)
HEADERS PERSISTENCE
![Page 43: HTTP/2, why upgrading the web? - #devoxxPL flavor](https://reader037.fdocuments.in/reader037/viewer/2022110313/55c1e145bb61ebf6218b468e/html5/thumbnails/43.jpg)
FOCUS ON WEB PERFORMANCES
![Page 44: HTTP/2, why upgrading the web? - #devoxxPL flavor](https://reader037.fdocuments.in/reader037/viewer/2022110313/55c1e145bb61ebf6218b468e/html5/thumbnails/44.jpg)
URL CANNOT CHANGE
![Page 45: HTTP/2, why upgrading the web? - #devoxxPL flavor](https://reader037.fdocuments.in/reader037/viewer/2022110313/55c1e145bb61ebf6218b468e/html5/thumbnails/45.jpg)
HOW TO UPDATE THE WEB ?
![Page 46: HTTP/2, why upgrading the web? - #devoxxPL flavor](https://reader037.fdocuments.in/reader037/viewer/2022110313/55c1e145bb61ebf6218b468e/html5/thumbnails/46.jpg)
HTTP&HTTPS
![Page 47: HTTP/2, why upgrading the web? - #devoxxPL flavor](https://reader037.fdocuments.in/reader037/viewer/2022110313/55c1e145bb61ebf6218b468e/html5/thumbnails/47.jpg)
NEGOCIATE A PROTOCOL ELEVATION
![Page 48: HTTP/2, why upgrading the web? - #devoxxPL flavor](https://reader037.fdocuments.in/reader037/viewer/2022110313/55c1e145bb61ebf6218b468e/html5/thumbnails/48.jpg)
HTTP/1 BUILD IN METHOD
Upgrade: header
Code 101 Switching
![Page 49: HTTP/2, why upgrading the web? - #devoxxPL flavor](https://reader037.fdocuments.in/reader037/viewer/2022110313/55c1e145bb61ebf6218b468e/html5/thumbnails/49.jpg)
WORKFLOW
![Page 50: HTTP/2, why upgrading the web? - #devoxxPL flavor](https://reader037.fdocuments.in/reader037/viewer/2022110313/55c1e145bb61ebf6218b468e/html5/thumbnails/50.jpg)
WORKFLOW
![Page 51: HTTP/2, why upgrading the web? - #devoxxPL flavor](https://reader037.fdocuments.in/reader037/viewer/2022110313/55c1e145bb61ebf6218b468e/html5/thumbnails/51.jpg)
IT’S STILL SLOW
![Page 52: HTTP/2, why upgrading the web? - #devoxxPL flavor](https://reader037.fdocuments.in/reader037/viewer/2022110313/55c1e145bb61ebf6218b468e/html5/thumbnails/52.jpg)
ENCRYPT THE WEB :TLS
![Page 53: HTTP/2, why upgrading the web? - #devoxxPL flavor](https://reader037.fdocuments.in/reader037/viewer/2022110313/55c1e145bb61ebf6218b468e/html5/thumbnails/53.jpg)
CURRENT NEGOTIATION: TLS VERSION, CYPHER…
![Page 54: HTTP/2, why upgrading the web? - #devoxxPL flavor](https://reader037.fdocuments.in/reader037/viewer/2022110313/55c1e145bb61ebf6218b468e/html5/thumbnails/54.jpg)
NEGOTIATE THE PROTOCOL IN THE SAME TIME OF ENCRYPT NEGOTIATION
![Page 55: HTTP/2, why upgrading the web? - #devoxxPL flavor](https://reader037.fdocuments.in/reader037/viewer/2022110313/55c1e145bb61ebf6218b468e/html5/thumbnails/55.jpg)
NPN (CLIENT)
&ALPN (SERVER)
Use this
![Page 56: HTTP/2, why upgrading the web? - #devoxxPL flavor](https://reader037.fdocuments.in/reader037/viewer/2022110313/55c1e145bb61ebf6218b468e/html5/thumbnails/56.jpg)
IS IT FOR REAL?
![Page 57: HTTP/2, why upgrading the web? - #devoxxPL flavor](https://reader037.fdocuments.in/reader037/viewer/2022110313/55c1e145bb61ebf6218b468e/html5/thumbnails/57.jpg)
LOOKS LIKE IP V6 STORY?
![Page 58: HTTP/2, why upgrading the web? - #devoxxPL flavor](https://reader037.fdocuments.in/reader037/viewer/2022110313/55c1e145bb61ebf6218b468e/html5/thumbnails/58.jpg)
MORE SPDY STORY
![Page 59: HTTP/2, why upgrading the web? - #devoxxPL flavor](https://reader037.fdocuments.in/reader037/viewer/2022110313/55c1e145bb61ebf6218b468e/html5/thumbnails/59.jpg)
BENCHMARK TIME
CAUTION
![Page 60: HTTP/2, why upgrading the web? - #devoxxPL flavor](https://reader037.fdocuments.in/reader037/viewer/2022110313/55c1e145bb61ebf6218b468e/html5/thumbnails/60.jpg)
![Page 61: HTTP/2, why upgrading the web? - #devoxxPL flavor](https://reader037.fdocuments.in/reader037/viewer/2022110313/55c1e145bb61ebf6218b468e/html5/thumbnails/61.jpg)
H2O PERFORMANCES
![Page 62: HTTP/2, why upgrading the web? - #devoxxPL flavor](https://reader037.fdocuments.in/reader037/viewer/2022110313/55c1e145bb61ebf6218b468e/html5/thumbnails/62.jpg)
H2, H2-14- Firefox
- Chrome
- cURL
- IE (oh yeah)
- …
- Akamai
- ….
https://github.com/http2/http2-spec/wiki/Implementations
![Page 63: HTTP/2, why upgrading the web? - #devoxxPL flavor](https://reader037.fdocuments.in/reader037/viewer/2022110313/55c1e145bb61ebf6218b468e/html5/thumbnails/63.jpg)
CLEVER CLOUD POV
![Page 64: HTTP/2, why upgrading the web? - #devoxxPL flavor](https://reader037.fdocuments.in/reader037/viewer/2022110313/55c1e145bb61ebf6218b468e/html5/thumbnails/64.jpg)
WORKING ON THIS
Client http2
reverse proxy http2
your app : http1
![Page 65: HTTP/2, why upgrading the web? - #devoxxPL flavor](https://reader037.fdocuments.in/reader037/viewer/2022110313/55c1e145bb61ebf6218b468e/html5/thumbnails/65.jpg)
ALL THE GOODNESS OF HTTP2 IN YOUR HTTP1 APP FOR NOTHING :-)
![Page 66: HTTP/2, why upgrading the web? - #devoxxPL flavor](https://reader037.fdocuments.in/reader037/viewer/2022110313/55c1e145bb61ebf6218b468e/html5/thumbnails/66.jpg)
WHY IT’S SO COOL?
![Page 67: HTTP/2, why upgrading the web? - #devoxxPL flavor](https://reader037.fdocuments.in/reader037/viewer/2022110313/55c1e145bb61ebf6218b468e/html5/thumbnails/67.jpg)
PERFORMANCES
![Page 68: HTTP/2, why upgrading the web? - #devoxxPL flavor](https://reader037.fdocuments.in/reader037/viewer/2022110313/55c1e145bb61ebf6218b468e/html5/thumbnails/68.jpg)
REMOVE ALL THE SHITTY HACKS
![Page 69: HTTP/2, why upgrading the web? - #devoxxPL flavor](https://reader037.fdocuments.in/reader037/viewer/2022110313/55c1e145bb61ebf6218b468e/html5/thumbnails/69.jpg)
EXPLORE NEW POSSIBILITIES
![Page 70: HTTP/2, why upgrading the web? - #devoxxPL flavor](https://reader037.fdocuments.in/reader037/viewer/2022110313/55c1e145bb61ebf6218b468e/html5/thumbnails/70.jpg)
IMPROVE THE USERS XP
![Page 71: HTTP/2, why upgrading the web? - #devoxxPL flavor](https://reader037.fdocuments.in/reader037/viewer/2022110313/55c1e145bb61ebf6218b468e/html5/thumbnails/71.jpg)
TODO LIST• https://http2.github.io/
• Specs• Implementations• FAQ• News
• Hack with node/h2o/Jetty
• Install Wireshark on your laptop
![Page 72: HTTP/2, why upgrading the web? - #devoxxPL flavor](https://reader037.fdocuments.in/reader037/viewer/2022110313/55c1e145bb61ebf6218b468e/html5/thumbnails/72.jpg)
I’m @waxzce on twitter
I’m the CEO of
A PaaS provider, give it a try ;-)
THX FOR LISTENING & QUESTIONS TIME