Skip to content

readme suggests done() which is incorrect #930

@phillip-haydon

Description

@phillip-haydon

On the readme, it says to call done();

Following this, 3 times I managed to exhaust all database connections. The link under the example suggests done(client); which correctly closes the connection.

I think this is a possible documentation error.


Basically we need the connection timeout handler to live in a separate process to make the lambda function freezable. That should solve the termination timeout issue (in theory).

How lambda handles re-use is described here in detail:
https://aws.amazon.com/blogs/compute/container-reuse-in-lambda/
Pay attention to the last section in particular.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions