mysql - Python AWS Lambda spins new connection to RDS for each deployment -


i have python based lambda function, connects mysql(rds) database.

every time deploy lambda code , run function, new connection created.

how can reuse same connection or flush old connections before creating new one?

close connection inside lambda function. expected , normal behaviour of lambda.


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -