1 個回答
- 最新
- 最多得票
- 最多評論
1
Best practices are similar to what you would do when connecting to another data store: declare the variable holding the connection to the database outside your handler so it can be re-utilized by subsequent invocations of your function.
You can find a good example here: https://docs.atlas.mongodb.com/best-practices-connecting-to-aws-lambda.
已回答 3 年前
相關內容
- AWS 官方已更新 8 個月前
- AWS 官方已更新 1 年前
- AWS 官方已更新 8 個月前