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
gefragt vor 2 Jahren726 Aufrufe
1 Antwort
5
Akzeptierte Antwort

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.

EXPERTE
beantwortet vor 2 Jahren
profile pictureAWS
EXPERTE
Uri
überprüft vor 2 Jahren
  • 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.

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen