Skip to content

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

Merged
yannmh merged 5 commits intomasterfrom
quentin.pierre/aws-lambda-decorator
Nov 29, 2018
Merged

Lambda wrapper - start TLS connection on init & RequestClientKeptAlive#328
yannmh merged 5 commits intomasterfrom
quentin.pierre/aws-lambda-decorator

Conversation

@16pierre
Copy link
Copy Markdown
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