-
Notifications
You must be signed in to change notification settings - Fork 489
Closed
Labels
guidanceQuestion that needs advice or information.Question that needs advice or information.
Description
Hi,
Currently i have a lambda function that is making a new connection to database on each invocation. This is causing downstream issues at the database level. Is there a way to pool connections? In the lambda best practices, there is a mention of db connections in the execution context reuse.
Now if i initialize a connection outside the lambda handler, how do i ensure that the connection is closed when execution environment is disposed of? issue #131 kind of touches on it, but not sure to how to ensure that the connections are closed safely.
Metadata
Metadata
Assignees
Labels
guidanceQuestion that needs advice or information.Question that needs advice or information.