1 回答
- 最新
- 投票最多
- 评论最多
0
For the first part you might consider putting setup code outside the Lambda function handler so that it is only executed once (on cold starts).
For the second part: You don't say what runtime language you're using in Lambda; there are a lot of tips on the web and in our documentation for reducing cold start times for Lambda functions. I'd link to them but without knowing the language I'd suggest instead that you search for "lambda reduce cold start" and add your runtime there.
You might also consider using Lambda Provisioned Concurrency but bear in mind there is a cost for that.
相关内容
- AWS 官方已更新 2 年前