http/2: ask me anything
Post on 11-Apr-2017
332 Views
Preview:
TRANSCRIPT
HTTP/2: Ask Me Anything
11 Nov 2015
MORE INFORMATION AT NGINX.COM
Who are we?
Valentin BartenevCore Developer
• SPDY and HTTP/2 lead developer
• Author, “7 Tips for Faster HTTP/2 Performance”.
Faisal MemonProduct Marketer
Floyd SmithTechnical Marketing Writer
• Author, “HTTP/2 for Web Application Developers”
MORE INFORMATION AT NGINX.COM
How NGINX Supports HTTP/2
NGINX translates HTTP/2 to the language your application speaks
MORE INFORMATION AT NGINX.COM
HTTP/1
HTTP/2
GET /
GET /a.css
GET /b.jpg
200 OK
200 OK
200 OK
MORE INFORMATION AT NGINX.COM
HTTP/1.x and HTTP/2 Compared
Browsers typically makes 6 connections per domain with HTTP/1.x
MORE INFORMATION AT NGINX.COM
HTTP/1
HTTP/2
MORE INFORMATION AT NGINX.COM
HTTP/2: Summary of Features
• Binary Header – Smaller header size
• Request Prioritization – Define what objects should be prioritized
• Server Push – Server pushes resources to client before it requests it
• Header Compression – HPACK header compression reduces size of HTTP/2 header
• Mandatory SSL – Not mandated by RFC but Chrome and Firefox won’t support without it
• More secure websites• Higher search rankings for encrypted sites
MORE INFORMATION AT NGINX.COM
HTTP/2 Support
Source: caniuse.com/#feat=http2
MORE INFORMATION AT NGINX.COM
How NGINX Supports HTTP/2
• Supported in both NGINX Plus R7 and NGINX 1.9.5
• Pre-built Linux binaries are built with OpenSSL 1.0.1• ALPN is supported but requires OpenSSL 1.0.2• Compile from source to use ALPN
• SPDY and HTTP/2 not supported in the same binary
• No Server Push yet...
MORE INFORMATION AT NGINX.COM
NGINX HTTP/2 Configuration
server { listen 80; return 301 https://$host$request_uri;}
server { listen 443 ssl http2 default_server;
ssl_certificate server.crt; ssl_certificate_key server.key; …}
MORE INFORMATION AT NGINX.COM
Try NGINX Plus
• Support development of open source NGINX
• Get direct access to NGINX engineers
• Additional features:• Active health checks• Session Persistence• Cache Purging• And more…
• Starting at $1,500/year
• Learn more: nginx.com/products
Your Questions...
top related