But SAM is certainly a valid option if you are OK with vendor lock in. (which many people are)
So if you don't rely on the cross-provider features Serverless offers I suggest to take a look at CloudFormation + SAM instead.
I have tried kappa (Python) and node-lambda (Node.js), and serverless works better than both of them, is more frequently updated (Lambda and API Gateway themselves change frequently), supports more languages (I have used it with Java, Python and Node.js) and has a much larger, more active community.
The API gateway support is pretty simple and solid, and they also allow you to use cloud formation rules directly so it is very flexible.
https://www.amazon.co.uk/Building-Serverless-Architectures-C...
Just like everyday conversation. I can speak without anonymity. But I would hate for someone to go look at some of the things I said 20 years ago.
a) most people will never put in that effort to search my history and
b) I trust that I will be able to find a proper excuse/response to anyone who would "attack me with my written history"
Related: https://aws.amazon.com/blogs/compute/container-reuse-in-lamb...
It's the same approach as autoscaling VMs, but at a function level.
It should help with overhead, but not always. There's benefits to partial solutions sometimes, if you can avoid the side effects.
With creative use of deletion policy you can do pretty well.
CloudFormation is pretty terrible about managing changes on DynamoDb databases, though.
No mention of Lambda best practices like:
- Using CloudFormation
- IAM policies
- Managing config
- How to handle databases and connection pools
Instead we get a logging suggestion that while interesting (I too prefer ElasticSearch to CloudWatch logs) is definitely not Lambda best practice.
And suggestion about choosing the right timeout (which is not necessarily helpful since the default timeout is 3 seconds so the best practice could be... "Leave the default alone unless you have a really good reason to raise it")
As far as the logging piece goes, if you are to use ElasticSearch I would strongly recommend putting the logs in CloudWatch logs first then using something like Logstash with a CloudWatch logs source to populate it into Elasticsearch as to not add another network dependency to your Lambda function.