So as long as the function is hot, it won't reconnect.
edit: https://medium.com/@tjholowaychuk/aws-lambda-lifecycle-and-i...
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!
> The endpoint is a simple proxy that routes your queries to a rapidly scaled fleet of database resources.
That doesn’t seem to preclude a multiplexing proxy a la PgBouncer.
You also forgo certain optimizations within the DB designed to make fetching things for the given connection/scope faster, such as temp tables.