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