Slide 1

Slide 1 text

HTTP/2 Daniel Quirino Oliveira SAP Hybris Expert Services LATAM [email protected]

Slide 2

Slide 2 text

HTTP is the foundation of EVERYTHING today Introduction

Slide 3

Slide 3 text

Introduction

Slide 4

Slide 4 text

Introduction Source: httparchive.org

Slide 5

Slide 5 text

Introduction Head of line blocking

Slide 6

Slide 6 text

Latency: time delay between the cause and the effect Introduction

Slide 7

Slide 7 text

Introduction

Slide 8

Slide 8 text

HTTP/1.1 workarounds best practices

Slide 9

Slide 9 text

Spriting CSS Inlining Assets Concatenation Domain Sharding Introduction

Slide 10

Slide 10 text

HTTP/2

Slide 11

Slide 11 text

RFC 7540 https://tools.ietf.org/html/rfc7540 HTTP/2

Slide 12

Slide 12 text

Major update of HTTP protocol in, ermmm... 15 years (?) HTTP/2

Slide 13

Slide 13 text

Keeps current HTTP paradigm Resources referenced by a URI accessible through a VERB. Keeps http(s):// URLs scheme What stays

Slide 14

Slide 14 text

Binary over pure-text protocol Adieu, telnet! Multiplexed One TCP connection to rule them all Header compression HPACK: https://http2.github.io/http2-spec/compression.html Server push Send assets before client requests it TLS (almost) mandatory What changes

Slide 15

Slide 15 text

Connection upgrade dance Client requests a resource Server replies with all supported protocols Client responds with protocol of choice Server responds with HTTP Status Code 101 HTTP/1.1 or HTTP/2 ?

Slide 16

Slide 16 text

Can I haz H/2? Most likely: yes Source: http://caniuse.com/#feat=http2

Slide 17

Slide 17 text

Performance 20% - 60% faster Security TLS User experience Server push improves client usability Benefits

Slide 18

Slide 18 text

http://hpbn.co/ https://daniel.haxx.se/http2 https://github.com/nghttp2/nghttp2 https://http2.github.io/ https://http2.github.io/http2-spec/ http://www.eclipse.org/jetty/documentation/cur rent/http2-configuring-push.html References

Slide 19

Slide 19 text

Thank you