By using AWS re:Post, you agree to the Terms of Use

Aurora Postgres Serverless V2 and Lambda


I'm wondering if Amazon has solved the connection pooling problem that is mentioned in StackOverflow posts dating back to 2017 when performing CRUD from a Lambda function. My application is Lambda and API Gateway driven. I don't like the idea of creating and destroying connections in Lambda functions that perform one operation/transaction. What are my options with Serverless V2?

1 Answers
Accepted Answer

AWS released RDS Proxy a while back for these use cases. Aurora Serverless v2 now supports it - see

answered a month ago
reviewed a month ago
  • I would just add that you do not need to create and destroy the connection in each invocation. Just create the connection at function init time and let it remain open.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions