AWS Lambda : good to know in advance
When I think of Lambda, an AWS serverless service, it seemed like a magical box. Once I create a lambda function, I imaged that AWS will do everything that I need except for business logic. However, I found that there are several things to think of when you are about to decide to go with lambda. 1. Cold start Before reading the official documents, the word "serverless" meant to me that containers are already provisioned and waiting for me to deploy the program. Honestly, I expected AWS to provide me warmed-up computing power. However, it turned out that AWS doesn't maintain containers. So the first invoke will take too long and if you attach VPC to the lambda function, elapsing time become worse. In my experiences, the average elapsed time to invoke function at first was about 18~20 secs. All the thing my function did was residing in VPC and querying to empty RDS database table. After that it took 300~500ms. ( Please be noted that I invoke lambda function in AWS reg...