-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Description
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
Labels
No labels