Reputation: 344
AWS ELB/ALB now supports HTTP/2.
According to the documentation (https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html):
Application Load Balancers provide native support for HTTP/2 with HTTPS listeners. You can send up to 128 requests in parallel using one HTTP/2 connection. The load balancer converts these to individual HTTP/1.1 requests and distributes them across the healthy targets in the target group.
My target is an EC2 instance running Apache with HTTP/2 support. Is it possible to have the ALB connect to the target (EC2 instance) via HTTP/2 and avoid having ALB <--> ec2 connections be via HTTP/1.1?
I did not see any way to do this in the console or documentation.
Upvotes: 8
Views: 14239
Reputation: 179314
No, this isn't possible.
ALB always converts the requests to HTTP/1.1 and this is not a configurable option.
When this question was originally asked, this was not possible.
This has changed. Application Load Balancers now support back-to-back HTTP/2 (and gRPC).
Upvotes: 7
Reputation: 1025
Yes, it is possible, configure the target group to use http2 in the basic config section as shown below.
Upvotes: 3