Problem

Reaching maximum connection limits - Serverless functions result in high usage of connections to the Postgres database. Invoked Serverless functions do not immediately end the connection. With moderate usage the Postgres database memory becomes overloaded.

Potential solutions

Solution notes and problems

Solution approach