Re:In The Works – Amazon Aurora Serverless
by sologoub on Wednesday November 29, 2017 @06:53PM
(#15812040)
Thanks, but I think this is very different from connection pooling on a DB, say pdbouncer.
Doing some searching, I did find this that seems much closer: http://blog.rowanudell.com/database-connections-in-lambda/
TLDR; you can define the connection to DB outside of the scope of a given function, so it’s scoped to the container and can be reused so long as the container is not recycled. Seems promising!
edit: https://medium.com/@tjholowaychuk/aws-lambda-lifecycle-and-i...