What is HTTP/2?
HTTP/2 is a major revision to the HTTP protocol. This latest version aims to maintain the semantics of HTTP while improving performance. However several of these improvements make upgrading existing servers challenging.
The working group of HTTP/2 had several goals:
- Create a negotiation mechanism that allows clients and servers to elect to use HTTP 1.1, 2.0, or potentially other non-HTTP protocols.
- Maintain high-level compatibility with HTTP 1.1 (for example with methods, status codes, URIs, and most header fields).
- Decrease latency to improve page load speed in web browsers by considering:
- Data compression of HTTP headers
- HTTP/2 Server Push
- Pipelining of requests
- Fixing the head-of-line blocking problem in HTTP 1.x
- Multiplexing multiple requests over a single TCP connection
- Support common existing use cases of HTTP, such as desktop web browsers, mobile web browsers, web APIs, web servers at various scales, proxy servers, reverse proxy servers, firewalls, and content delivery networks.
How to work with HTTP/2 in Elixir?
Peter Saxton has built a server to take advantange of all the new features of HTTP/2, it's called Ace. The Ace server supports only HTTP/2 built entirely in Elixir.
In this talk, Peter will provide a summary of the features of HTTP/2. He will then explain how Ace makes these features available to application developers and show us what is needed to increase adoption of HTTP/2 in the Elixir Ecosystem.