Aws-sdk-js: Feature request: HTTP2 support

Created on 15 Oct 2018  路  5Comments  路  Source: aws/aws-sdk-js

Node.js supports HTTP2, and it appears the Lambda endpoints now too support HTTP2 (see below).

It would be considerably more efficient if it were possible to invoke Lambda functions using HTTP2 to avoid needless TLS handshakes and high concurrent of TCP/IP connections for HTTP/1.1 support.

Is there any plan to add HTTP2 support to this library any time soon?


$ curl --verbose https://lambda.us-east-1.amazonaws.com
* Rebuilt URL to: https://lambda.us-east-1.amazonaws.com/
*   Trying 52.5.91.208...
....
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* Using Stream ID: 1 (easy handle 0x7fa311006600)
> GET / HTTP/2
> Host: lambda.us-east-1.amazonaws.com
> User-Agent: curl/7.54.0
> Accept: */*
>
* Connection state changed (MAX_CONCURRENT_STREAMS updated)!
< HTTP/2 403
< date: Mon, 15 Oct 2018 11:57:58 GMT
< content-length: 127
< x-amzn-requestid: 8f59aa36-d071-11e8-8fd1-0558df7ee5f8
<
feature-request needs-major-version

Most helpful comment

Thanks for submitting this request.

This is a feature that we're considering for the next major version of the SDK.

All 5 comments

Thanks for submitting this request.

This is a feature that we're considering for the next major version of the SDK.

Any ETA on the next major version release?

I see the Java SDK now supports HTTP/2, see https://docs.aws.amazon.com/sdk-for-java/v2/developer-guide/basics-http2.html. Any update on when HTTP/2 support may surface in Node?

+1

The newly aws-sdk-js-v3 supports HTTP2. From aws blog:

We also added many other features, which we are planning to cover in detail in future blog posts:

  • ...
  • Support for HTTP/2

Source: https://aws.amazon.com/blogs/developer/modular-aws-sdk-for-javascript-is-now-generally-available

Was this page helpful?
0 / 5 - 0 ratings