How we can use JDBC connection pooling with AWS Lambda?

后端 未结 4 1111
我寻月下人不归
我寻月下人不归 2020-12-30 06:39

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

4条回答
  •  春和景丽
    2020-12-30 07:13

    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).

提交回复
热议问题