Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Use Connection: keep-alive to improve application performance #2571
By default, NodeJS sets
It has been reported before (#146), recently publicized by an AWS Serverless Hero and it's also recommended by AWS for DynamoDB when using encryption at rest. DynamoDB itself responds with a
Even though all these examples pertain to DynamoDB, I imagine other services will benefit from this change as well. For what it's worth, boto3, the official AWS SDK for Python does not explicitly set a
Please consider setting keep-alive header the on the SDK level so that going forward, the whole community can benefit from this improvement.
Changing the default behavior here could introduce issues for existing users of the SDK. If this were enabled by default, it would require a major version bump.
It is possible to enable keep-alive through configuration.
That can be done on the global config:
Or on a per-client basis: