Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lambda wrapper - start TLS connection on init & RequestClientKeptAlive #328

Merged
merged 5 commits into from
Nov 29, 2018

Conversation

16pierre
Copy link
Contributor

Adds a new HTTPClient: RequestClientKeptAlive. It keeps the requests session alive.

Adds a no-op POST request on lambda_wrapper initialization: this initializes RequestClientKeptAlive's connection to our endpoint at the beginning of the lambda executions instead of at the end: this enables to us to use an async initialization.

Note: the connection to our endpoint is kept alive across multiple invocations of the same lambda thanks to AWS's context reuse.

@16pierre 16pierre force-pushed the quentin.pierre/aws-lambda-decorator branch 2 times, most recently from a60fb93 to ce25a4a Compare November 28, 2018 22:18
@16pierre 16pierre force-pushed the quentin.pierre/aws-lambda-decorator branch from ce25a4a to 637d5a4 Compare November 29, 2018 15:26
@yannmh yannmh merged commit f107b98 into master Nov 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants