Can we use JDBC connection pooling with AWS Lambda ? AS AWS lambda function get called on a specific event, so its life time persist even after it finishing one of its call
Kudos to the AWS RDS proxy, now you can used pooled MySql
and postgrese
connections without any extra configs in your Java
or other any code specific to AWS Lambda. All you need is to create and Add a Database proxy
your AWS Lambda function you want to reuse/pool connections. See how-to here.
Note: AWS RDS proxy is not included in the Free-Tier (more here).