SlideShare a Scribd company logo
1 of 32
HTTP/2 for dummies
Patrizio Munzi
Senior Software Engineer
in Hotels.com Rome Tech Hub
@patrizio_munzi
@patrizio_munzi 2
HTTP/2 ≧ HTTP/1
• https://blog.httpwatch.com/2015/01/16/a-simple-performance-comparison-of-https-spdy-and-http2/
• http://ieeexplore.ieee.org/document/7179400/
• https://www.tunetheweb.com/blog/http-versus-https-versus-http2/
• Just google for others 
@patrizio_munzi 3
@patrizio_munzi 4
100ms in delay results in 1% sales loss.
(potential hundreds of milions in lost revenues)
400ms delay results in 5-9% drop in full
page traffic
500ms delay drops search traffic by 20%.
• https://www.slideshare.net/pob1970/mobile-first-lukew/41-100ms_delay_results_in_1
• https://news.ycombinator.com/item?id=273900
• http://glinden.blogspot.it/2006/11/marissa-mayer-at-web-20.html
@patrizio_munzi 5
Agenda
1. A bit of HTTP history
2. HTTP/2 new features
3. HTTP/2 in practice
4. HTTP/2 adoption recipes
5. Q/A
@patrizio_munzi 6
History HTTP
1991 1997 20151996 2012
HTTP/0.9
GET
POST
HEAD
@patrizio_munzi 7
History HTTP
1991 1997 20151996 2012
HTTP/1.0 PUT
DELETE
@patrizio_munzi 8
History HTTP
1991 1997 20151996 2012
HTTP/1.1
OPTIONS
HOST HEADER
KEEP ALIVE
@patrizio_munzi 9
HTTP/1 best practices
@patrizio_munzi 10
HTTP/1 best practices
workarounds
@patrizio_munzi 11
HTTP/1 best practices
hacks
Concatenation
Inlining
Spriting
Domain Sharding
workarounds
@patrizio_munzi 12
HOL Blocking
One resource at a time
HTTP/1 worst problem
@patrizio_munzi 13
HTTP/1 waterfall
Max 6 conns a at time
https://http2.akamai.com/demo
@patrizio_munzi 14
History HTTP
1991 1997 20151996 2012
SPDY BINARY
HEADER COMPRESSION
MULTIPLEXED STREAMS
SERVER PUSH
PROTOCOL NEGOTIATION
@patrizio_munzi 15
History HTTP
1991 1997 20151996 2012
HTTP/2 BINARY
HPACK
MULTIPLEXED STREAMS
SERVER PUSH
PROTOCOL NEGOTIATION
@patrizio_munzi 16
Why HTTP/2 is faster?
1 - MULTIPLEXING
@patrizio_munzi 17
1 - MULTIPLEXING
Why HTTP/2 is faster?
STREAM 1
STREAM 2
STREAM 3
Client Server
HTTP request 1
HTTP request 3
HTTP request 2
Frame
@patrizio_munzi 18
HTTP/2 waterfall
https://http2.akamai.com/demo
1 conn – multiple reqs
@patrizio_munzi 19
HTTP/1 vs HTTP/2
waterfall
HTTP/2: 1 conn – multiple reqsHTTP/1: Max 6 conns a at time
@patrizio_munzi 20
No more HTTP/1 hacks
Concatenation
Inlining
Spriting
Domain Sharding
@patrizio_munzi 21
2 - HPACK
Why HTTP/2 is faster?
• Static Dictionary: 61 commonly used header fields
• Dynamic Dictionary: A list of actual headers that were encountered
during the connection. Size limited.
• Static Huffman Encoding
@patrizio_munzi 22https://blog.cloudflare.com/hpack-the-silent-killer-feature-of-http-2/
2 - HPACK
Why HTTP/2 is faster?
This is how ingress header traffic appears on the Cloudflare edge
network during a six hour period
@patrizio_munzi 23
3 - Server PUSH
Why HTTP/2 is faster?
Browser
can reject
push
Server
builds
page
Server
builds
page
Client
process
page
24
$ java -jar $JETTY_HOME/start.jar --create-startd --add-
to-start=servlets,http,https,deploy,http2,http2c
$ java -jar $JETTY_HOME/start.jar
INFO:oejs.AbstractConnector:main: Started
ServerConnector@5f9b2141{SSL,[ssl, alpn, h2,
http/1.1]}{0.0.0.0:8443}
https://localhost:8443/http2/
HTTP/2 on jetty
25
HTTP/2 with Server Push
Add the push filter to your web.xml
https://localhost:8443/http2/
@patrizio_munzi 26
NOW?(browsers)
We’re safe. HTTP/2 is an Upgrade Protocol
It kicks in only if the browser supports it
@patrizio_munzi 27
NOW?(servers)
We’re good
28
Put the static assets on a HTTP/2 CDN
HTTP/2 adoption
(tier 1)
Apache
Reverse
Proxy
CDN
Static
Content
HTTP/2
HTTP/1
Dynamic
Content
Web
Server
HTTP/1
Dynamic
Content
29
Have a reverse proxy translating HTTP/2 calls to HTTP/1
HTTP/2 adoption
(tier 2)
Apache
Reverse
ProxyHTTP/2
Dynamic
Content
CDN
Static
Content
HTTP/2
HTTP/1
Dynamic
Content
Web
Server
HTTP/2
30
The whole infrastructure over HTTP/2
HTTP/2 adoption
(tier 3)
Apache
Reverse
ProxyHTTP/2
Dynamic
Content
CDN
Static
Content
HTTP/2
Web
Server
HTTP/2
HTTP/2
Dynamic
Content
@patrizio_munzi 31
Q/A
32
References
• https://http2.github.io/
• https://http2.akamai.com/demo
• https://blog.cloudflare.com/hpack-the-silent-killer-feature-of-http-2/
• https://en.wikipedia.org/wiki/Huffman_coding
• https://webtide.com/introduction-to-http2-in-jetty/
• https://community.akamai.com/videos/1919-the-promise-of-http2-h2-server-push
• https://github.com/jetty-project/http2-demo
• https://www.webpagefx.com/blog/internet/website-page-load-time-conversions/
• https://blog.gigaspaces.com/amazon-found-every-100ms-of-latency-cost-them-1-in-
sales/

More Related Content

Similar to HTTP/2 for dummies - Codemotion Berlin 2017

Exploring web apps with Fiddler and Chrome Dev Tools
Exploring web apps with Fiddler and Chrome Dev ToolsExploring web apps with Fiddler and Chrome Dev Tools
Exploring web apps with Fiddler and Chrome Dev ToolsCristian Satnic
 
Http/2 - What's it all about?
Http/2  - What's it all about?Http/2  - What's it all about?
Http/2 - What's it all about?Andy Davies
 
HTTP colon slash slash: end of the road? @ CakeFest 2013 in San Francisco
HTTP colon slash slash: end of the road? @ CakeFest 2013 in San FranciscoHTTP colon slash slash: end of the road? @ CakeFest 2013 in San Francisco
HTTP colon slash slash: end of the road? @ CakeFest 2013 in San FranciscoAlessandro Nadalin
 
The end of polling : why and how to transform a REST API into a Data Streamin...
The end of polling : why and how to transform a REST API into a Data Streamin...The end of polling : why and how to transform a REST API into a Data Streamin...
The end of polling : why and how to transform a REST API into a Data Streamin...Audrey Neveu
 
HTTP/2 and Java: Current Status
HTTP/2 and Java: Current StatusHTTP/2 and Java: Current Status
HTTP/2 and Java: Current StatusSimone Bordet
 
Altitude SF 2017: Optimizing your hit rate
Altitude SF 2017: Optimizing your hit rateAltitude SF 2017: Optimizing your hit rate
Altitude SF 2017: Optimizing your hit rateFastly
 
20190516 web security-basic
20190516 web security-basic20190516 web security-basic
20190516 web security-basicMksYi
 
Google are pushing HTTPS hard. Why? And​,​ when should you act? by Mark Thoma...
Google are pushing HTTPS hard. Why? And​,​ when should you act? by Mark Thoma...Google are pushing HTTPS hard. Why? And​,​ when should you act? by Mark Thoma...
Google are pushing HTTPS hard. Why? And​,​ when should you act? by Mark Thoma...SEO monitor
 
64c7d81c-2398-4c8d-a21d-421f53f03deb-160413212748
64c7d81c-2398-4c8d-a21d-421f53f03deb-16041321274864c7d81c-2398-4c8d-a21d-421f53f03deb-160413212748
64c7d81c-2398-4c8d-a21d-421f53f03deb-160413212748Latha Gummadi
 
HTTP 2.0 - Web Unleashed 2015
HTTP 2.0 - Web Unleashed 2015HTTP 2.0 - Web Unleashed 2015
HTTP 2.0 - Web Unleashed 2015dmethvin
 
CSU33012-I-microservices.pdf
CSU33012-I-microservices.pdfCSU33012-I-microservices.pdf
CSU33012-I-microservices.pdfRicky Garg
 
HTTP colon slash slash: the end of the road?
HTTP colon slash slash: the end of the road?HTTP colon slash slash: the end of the road?
HTTP colon slash slash: the end of the road?Alessandro Nadalin
 
Revisiting HTTP/2
Revisiting HTTP/2Revisiting HTTP/2
Revisiting HTTP/2Fastly
 
A faster journey with HTTP
A faster journey with HTTPA faster journey with HTTP
A faster journey with HTTPMichael Ewins
 
Build and Deploy Provider-hosted SharePoint Add-ins
Build and Deploy Provider-hosted SharePoint Add-insBuild and Deploy Provider-hosted SharePoint Add-ins
Build and Deploy Provider-hosted SharePoint Add-insDanny Jessee
 

Similar to HTTP/2 for dummies - Codemotion Berlin 2017 (20)

Exploring web apps with Fiddler and Chrome Dev Tools
Exploring web apps with Fiddler and Chrome Dev ToolsExploring web apps with Fiddler and Chrome Dev Tools
Exploring web apps with Fiddler and Chrome Dev Tools
 
Http/2 - What's it all about?
Http/2  - What's it all about?Http/2  - What's it all about?
Http/2 - What's it all about?
 
HTTP colon slash slash: end of the road? @ CakeFest 2013 in San Francisco
HTTP colon slash slash: end of the road? @ CakeFest 2013 in San FranciscoHTTP colon slash slash: end of the road? @ CakeFest 2013 in San Francisco
HTTP colon slash slash: end of the road? @ CakeFest 2013 in San Francisco
 
Speed = $$$
Speed = $$$Speed = $$$
Speed = $$$
 
The end of polling : why and how to transform a REST API into a Data Streamin...
The end of polling : why and how to transform a REST API into a Data Streamin...The end of polling : why and how to transform a REST API into a Data Streamin...
The end of polling : why and how to transform a REST API into a Data Streamin...
 
HTTP/2 Comes to Java
HTTP/2 Comes to JavaHTTP/2 Comes to Java
HTTP/2 Comes to Java
 
HTTP/2 and Java: Current Status
HTTP/2 and Java: Current StatusHTTP/2 and Java: Current Status
HTTP/2 and Java: Current Status
 
URL Design
URL DesignURL Design
URL Design
 
Altitude SF 2017: Optimizing your hit rate
Altitude SF 2017: Optimizing your hit rateAltitude SF 2017: Optimizing your hit rate
Altitude SF 2017: Optimizing your hit rate
 
20190516 web security-basic
20190516 web security-basic20190516 web security-basic
20190516 web security-basic
 
Google are pushing HTTPS hard. Why? And​,​ when should you act? by Mark Thoma...
Google are pushing HTTPS hard. Why? And​,​ when should you act? by Mark Thoma...Google are pushing HTTPS hard. Why? And​,​ when should you act? by Mark Thoma...
Google are pushing HTTPS hard. Why? And​,​ when should you act? by Mark Thoma...
 
64c7d81c-2398-4c8d-a21d-421f53f03deb-160413212748
64c7d81c-2398-4c8d-a21d-421f53f03deb-16041321274864c7d81c-2398-4c8d-a21d-421f53f03deb-160413212748
64c7d81c-2398-4c8d-a21d-421f53f03deb-160413212748
 
HTTP 2.0 - Web Unleashed 2015
HTTP 2.0 - Web Unleashed 2015HTTP 2.0 - Web Unleashed 2015
HTTP 2.0 - Web Unleashed 2015
 
CSU33012-I-microservices.pdf
CSU33012-I-microservices.pdfCSU33012-I-microservices.pdf
CSU33012-I-microservices.pdf
 
gofortution
gofortutiongofortution
gofortution
 
HTTP colon slash slash: the end of the road?
HTTP colon slash slash: the end of the road?HTTP colon slash slash: the end of the road?
HTTP colon slash slash: the end of the road?
 
Revisiting HTTP/2
Revisiting HTTP/2Revisiting HTTP/2
Revisiting HTTP/2
 
A faster journey with HTTP
A faster journey with HTTPA faster journey with HTTP
A faster journey with HTTP
 
Build and Deploy Provider-hosted SharePoint Add-ins
Build and Deploy Provider-hosted SharePoint Add-insBuild and Deploy Provider-hosted SharePoint Add-ins
Build and Deploy Provider-hosted SharePoint Add-ins
 
SPDY - or maybe HTTP2.0
SPDY - or maybe HTTP2.0SPDY - or maybe HTTP2.0
SPDY - or maybe HTTP2.0
 

Recently uploaded

Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
INDIVIDUAL ASSIGNMENT #3 CBG, PRESENTATION.
INDIVIDUAL ASSIGNMENT #3 CBG, PRESENTATION.INDIVIDUAL ASSIGNMENT #3 CBG, PRESENTATION.
INDIVIDUAL ASSIGNMENT #3 CBG, PRESENTATION.CarlotaBedoya1
 
Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...Diya Sharma
 
Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)
WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)
WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)Delhi Call girls
 
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call GirlVIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girladitipandeya
 
Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...
Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...
Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...Delhi Call girls
 
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...Sheetaleventcompany
 
Top Rated Pune Call Girls Daund ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
Top Rated  Pune Call Girls Daund ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...Top Rated  Pune Call Girls Daund ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
Top Rated Pune Call Girls Daund ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...Call Girls in Nagpur High Profile
 
CALL ON ➥8923113531 🔝Call Girls Lucknow Lucknow best sexual service Online
CALL ON ➥8923113531 🔝Call Girls Lucknow Lucknow best sexual service OnlineCALL ON ➥8923113531 🔝Call Girls Lucknow Lucknow best sexual service Online
CALL ON ➥8923113531 🔝Call Girls Lucknow Lucknow best sexual service Onlineanilsa9823
 
VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting High Prof...
VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting  High Prof...VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting  High Prof...
VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting High Prof...singhpriety023
 
Nanded City ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready ...
Nanded City ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready ...Nanded City ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready ...
Nanded City ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready ...tanu pandey
 
Pune Airport ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready...
Pune Airport ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready...Pune Airport ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready...
Pune Airport ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready...tanu pandey
 
Networking in the Penumbra presented by Geoff Huston at NZNOG
Networking in the Penumbra presented by Geoff Huston at NZNOGNetworking in the Penumbra presented by Geoff Huston at NZNOG
Networking in the Penumbra presented by Geoff Huston at NZNOGAPNIC
 
Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.soniya singh
 
Hot Service (+9316020077 ) Goa Call Girls Real Photos and Genuine Service
Hot Service (+9316020077 ) Goa  Call Girls Real Photos and Genuine ServiceHot Service (+9316020077 ) Goa  Call Girls Real Photos and Genuine Service
Hot Service (+9316020077 ) Goa Call Girls Real Photos and Genuine Servicesexy call girls service in goa
 

Recently uploaded (20)

Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
INDIVIDUAL ASSIGNMENT #3 CBG, PRESENTATION.
INDIVIDUAL ASSIGNMENT #3 CBG, PRESENTATION.INDIVIDUAL ASSIGNMENT #3 CBG, PRESENTATION.
INDIVIDUAL ASSIGNMENT #3 CBG, PRESENTATION.
 
Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝
 
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
 
Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝
 
WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)
WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)
WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)
 
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call GirlVIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
VIP 7001035870 Find & Meet Hyderabad Call Girls LB Nagar high-profile Call Girl
 
Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...
Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...
Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...
 
Rohini Sector 6 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 6 Call Girls Delhi 9999965857 @Sabina Saikh No AdvanceRohini Sector 6 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 6 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
 
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
 
Top Rated Pune Call Girls Daund ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
Top Rated  Pune Call Girls Daund ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...Top Rated  Pune Call Girls Daund ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
Top Rated Pune Call Girls Daund ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
 
CALL ON ➥8923113531 🔝Call Girls Lucknow Lucknow best sexual service Online
CALL ON ➥8923113531 🔝Call Girls Lucknow Lucknow best sexual service OnlineCALL ON ➥8923113531 🔝Call Girls Lucknow Lucknow best sexual service Online
CALL ON ➥8923113531 🔝Call Girls Lucknow Lucknow best sexual service Online
 
VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting High Prof...
VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting  High Prof...VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting  High Prof...
VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting High Prof...
 
Nanded City ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready ...
Nanded City ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready ...Nanded City ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready ...
Nanded City ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready ...
 
Pune Airport ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready...
Pune Airport ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready...Pune Airport ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready...
Pune Airport ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready...
 
Networking in the Penumbra presented by Geoff Huston at NZNOG
Networking in the Penumbra presented by Geoff Huston at NZNOGNetworking in the Penumbra presented by Geoff Huston at NZNOG
Networking in the Penumbra presented by Geoff Huston at NZNOG
 
Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.
 
Russian Call Girls in %(+971524965298 )# Call Girls in Dubai
Russian Call Girls in %(+971524965298  )#  Call Girls in DubaiRussian Call Girls in %(+971524965298  )#  Call Girls in Dubai
Russian Call Girls in %(+971524965298 )# Call Girls in Dubai
 
Hot Service (+9316020077 ) Goa Call Girls Real Photos and Genuine Service
Hot Service (+9316020077 ) Goa  Call Girls Real Photos and Genuine ServiceHot Service (+9316020077 ) Goa  Call Girls Real Photos and Genuine Service
Hot Service (+9316020077 ) Goa Call Girls Real Photos and Genuine Service
 
(INDIRA) Call Girl Pune Call Now 8250077686 Pune Escorts 24x7
(INDIRA) Call Girl Pune Call Now 8250077686 Pune Escorts 24x7(INDIRA) Call Girl Pune Call Now 8250077686 Pune Escorts 24x7
(INDIRA) Call Girl Pune Call Now 8250077686 Pune Escorts 24x7
 

HTTP/2 for dummies - Codemotion Berlin 2017

Editor's Notes

  1. Ok, now, before we start, let me tell you the only thing I wanna you take away from this talk. HTTP/2 is faster than HTTP/1. No matter what. Numerous studies confirm this.
  2. having a faster website means more money. Amazon makes 1% more revenue for every 100ms shaved off every page. Imagine amazon is making millions dollars, 1% is millions dollars. Yahoo: they tested that every 400ms there was an increase on the traffic on the site by 9%
  3. HTTP was born over 20 years ago and was thought for serving this kind of pages. Text with a little formatting going on and link to other web pages. And this is what the protocol was designed for.
  4. A few years later, HTTP 1.0 came and he bought a couple of more methods and features
  5. Only a year later a new version came. It’s strange it was only a year but there were problems to address It had OPTIONS method which was needed to do cross-origin communications. HOST HEADER became mandatory because people started to host multiple websites on the same server. And KEEP ALIVE. Websites looked like this and weren’t anymore hypertext but hypermedia. The release of HTTP/1.1 allowed only to solve a few of the limit the HTTP protocol had. Websites started to become more and more complex and heavy. Websites like myspace, facebook, twitter were born and the expectations over the HTTP performances increased. Developers started to abuse of HTTP/1 and defined best practices to get around its performance limit. Actually it wasn’t really like that. We were just not using it for what it wasn’t design for.
  6. Workaorund to increase HTTP/1 performances
  7. Head Of Line blocking When you send a req on a connection to a server, that connection is useless until the req is completed. Originally a browser was only allowed to 2 concurrent connections so with the evolution of web 2 connections became insufficient and someone said, ok let’s raise the limit but you can realise that 6 conns is better than 2 but it’s anyway a limit and just postpone the problem
  8. The HOL blocking as long as various other HTTP limitations pushed google to start defining SPDY, an experimental protocol only supported by chrome and google servers. It was a binary protocol, it had headers compression and server push, these feature were taken and reworked by the HTTP/2 authority and HTTP/2 was born in 2015  it became apparent that SPDY was gaining traction with implementrs
  9.  SPDY/2 was chosen as the basis for HTTP/2.  Now at the beginning of the presentation I told you that HTTP/2 was faster and this was because of its 3 wonderful features.
  10. Why’s faster? Multiplexing which mean 1 always open connection multiple concurrent requests so one latency. Connection is split in multiple streams and every stream is split in ordered frames. Since now all the reqs goes in one single connection as streams, potentially all the reqs can start in parallel. And that’s is actually what happens
  11. Why’s faster? Multiplexing which mean 1 always open connection multiple concurrent requests so one latency. Connection is split in multiple streams and every stream is split in ordered frames. Since now all the reqs goes in one single connection as streams, potentially all the reqs can start in parallel. And that’s is actually what happens
  12. in fact if we go back to the akamai demo and we load the same cropped images over HTTP/2 we can see that all the image pieces are loaded in parallel.
  13. in fact if we go back to the akamai demo and we load the same cropped images over HTTP/2 we can see that all the image pieces are loaded in parallel.
  14. They are disadvantageous
  15. Header compression specifically for HTTP. Why’s faster? HPACK. We can finally compress request headers. The two main features here are: Header content is compressed Tables not at req level but at connection level – one more reason to have as less domain as possible.
  16. A web browser requests a webpage (index.html in our example), and the server returns to the client three objects: index.html, and two extra objects: scripts.js and styles.css (PROMISES of resources the client is going to need soon), which are stored on a special cache reserved for that purpose. The client then parses index.html and realizes it needs three objects to load the page: scripts.js, styles.css and image.jpg. The first two are already in the browser cache as they have been pushed by the server, so the client just needs to request image.jpg to the server in order to render the page. Drawbacks: - Pushing resources that are already present in the browser's cache can waste precious bandwidth. - Having push resources compete with the delivery of the HTML, which can impact page load times. This can be avoided by limiting the amount and size of what is pushed.
  17. - Incredible how jetty is simple: Requirements: - JDK 8 Show logs of HTTP connector on 8080 HTTPS connector HTTP2 connector on 8443 DEMO Dummiest project you could start playing around with HTTP/2 Traffic shaping with ”Traffic shaper control program”
  18. Restart server and show that the resources are not anymore pushed, they will be pushed after the first load
  19. Almost all brwoser supports it. And we’re safe HTTP/2 kicks in only if browser supports it
  20. Server side after over 1 year from the standardization all major servers support it.
  21. To really get improvements we need to disable: Spriting Concatenation Domain sharding Even if in samples thisgives great improvements, in real life the performance improvements are of about 1%
  22. To really get improvements we need to disable: Spriting Concatenation Domain sharding Even if in samples thisgives great improvements, in real life the performance improvements are of about 1%
  23. To really get improvements we need to disable: Spriting Concatenation Domain sharding Even if in samples this gives great improvements, in real life the performance improvements are of about 1%
  24. - HTTP/2 in hotels.com? hotels.com has started the adoption, but in a big company this takes sometime