1 Answer
- Newest
- Most votes
- Most comments
1
Hi,
To maximize efficiency and simplify RDS connection sharing with Lambdas, it is recommended to use the RDS Proxy: a good starting point is https://docs.aws.amazon.com/lambda/latest/dg/services-rds.html
Also, this best practice blog has a section on RDS Proxy: https://medium.com/platform-engineer/aws-lambda-performance-best-practices-50968e5bb075
Best,
Didier
Relevant content
- Accepted Answerasked 4 months ago
- asked 3 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
Would it be needed to close the connections with the RDS proxy? Would implementing the proxy properly involve code changes or just change the endopoint ?
Hi Diego, no, management of sessions is done by the proxy, which multiplexes their use by different requesters to maximize efficiency.