How we can use JDBC connection pooling with AWS Lambda?

后端 未结 4 1112
我寻月下人不归
我寻月下人不归 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:22

    It has caveat There is no destroy method which ensures closing pool. One may say DB connection idle time would handle. What if same DB being used for other use cases like pool maintain in regular machine Luke EC2. As many say, if there is sudden spike in requests, create chaos to DB as there will be always some maximum connection setting at database side per user.

提交回复
热议问题