Skip to content

Database connection pooling #388

@gopinathrimc

Description

@gopinathrimc

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

No one assigned

    Labels

    guidanceQuestion that needs advice or information.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions