Aurora Postgres Serverless V2 and Lambda

1

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?

bruce
질문됨 2년 전726회 조회
1개 답변
5
수락된 답변

AWS released RDS Proxy a while back for these use cases. Aurora Serverless v2 now supports it - see https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.html.

전문가
답변함 2년 전
profile pictureAWS
전문가
Uri
검토됨 2년 전
  • 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.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠