Konstantin
Konstantin

Reputation: 344

AWS ELB/ALB http/2 pass thru to EC2 instance via http/2 (not http/1.1)

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

Answers (2)

Michael - sqlbot
Michael - sqlbot

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).

https://aws.amazon.com/blogs/aws/new-application-load-balancer-support-for-end-to-end-http-2-and-grpc/

Upvotes: 7

Sateesh
Sateesh

Reputation: 1025

Yes, it is possible, configure the target group to use http2 in the basic config section as shown below. enter image description here

Upvotes: 3

Related Questions