I recently asked a question to a professor in a QA session. I didn't have the chance to follow up the question because of the volume of the questions asked that day.
So the question is: How do people (in general) get around of the cold start time of AWS Lambda in VPC interacting with RDS?
And his answer is: The ENI which is the long part of the process only attaches at the beginning of the container. So if you run a small select top 1 on your database each minute or so it will keep the connection open and not have to attach the ENI
So my follow up question is,
I have multiple lambda functions. Should I run the SELECT TOP 1 on a single lambda function, or should I ping all of my lambda functions from cloudwatch (and select TOP 1) if the event is from cloudwatch?
Thank you!