HTTP/2 pushes on AWS API Gateway + Lambda
Asked Answered
G

1

10

Is it possible to run HTTP/2 pushes with aws-serverless-express?

As far as I know, AWS API gateway supports HTTP/2 (verified with https://tools.keycdn.com/http2-test). Unfortunately, I can't find any example of HTTP/2 pushes under node.js app deployed on lambda.

The only example which I found is Node.js app which supports HTTP/2:
https://github.com/azat-co/http2-node-server-push

Any tips? Solutions? Is it even possible?

Globetrotter answered 22/6, 2017 at 18:45 Comment(1)
What are you trying to do?Prescience
M
3

Incoming requests to API Gateway are HTTP2 compatible, but requests from API Gateway to your Lambda function will not be HTTP2. Your function code does not need to support HTTP2.

Moonlit answered 22/6, 2017 at 23:17 Comment(5)
Is this still the case?Edington
@RobertoAndrade - yes. (as of September 2018)Daryn
Wrong. it was possible in 16. aws.amazon.com/blogs/aws/new-http2-support-for-cloudfrontGaylagayle
Updating answer now. ALB and CloudFront both support HTTP2 at present. This means that incoming requests to API Gateway are HTTP2 compatible.Moonlit
This does not answer the question about support for the “push” feature of the HTTP/2 protocol.Ylla

© 2022 - 2024 — McMap. All rights reserved.