I have an AWS Lambda within VPC (connects to RDS) which suffers from a typical cold start issue. I have read a couple of articles on how to make things faster so I deployed Provisioned concurrency
Details: .NET Core 3.1 environment, ASP.NET Core project running in AWS Lambda, connecting PostgreSQL RDS dbo, VPC environment.
During the testing phase, to keep costs as low as possible, I have just 3 Provisioned Concurrency ($10)
Before Provisioned Concurrency, the first request after few hours of inactivity took between 15 to 20 seconds. Next requests, fired shortly after, took less than a second. Some of the requests then randomly took again 15 seconds (I think due to parallel invocation).
After Provissioned Concurrency first requests after a day of inactivity took 14 seconds.
My expectations of Provisioned Concurrency was to get rid of the Cold Start. AWS Blogs or other Blogs have supported my wishes, however, there is still a gotcha. I think this is due to VPC.
Thanks for any hints or experience sharing!