1回答
- 新しい順
- 投票が多い順
- コメントが多い順
1
Hi, I may be wrong (I didn't test in details) but I see at least one interesting difference:
- the Secret cache is local to your Lambda execution. So, it's useful if you make several calls to SecretManager to obtain same secret multiple time during the execution of your Lambda.
- The Lambda extensions can be shared across multiple executions: so, you get the benefits of caching (less cost due to less API calls, reduced latency) multiple times.
This article shows the results across multiple executions with AWS Lambda Extension for Secrets: https://www.element7.io/2022/12/boost-performance-and-reduce-costs-using-lambda-extensions/
On https://github.com/aws/aws-secretsmanager-caching-java, the recommendation is to use the Secret Cache with
private final SecretCache cache = new SecretCache();
In this form, it will go away at the end of each Lambda execution
Best, Didier
関連するコンテンツ
- 質問済み 6年前
- AWS公式更新しました 3年前
I think that execution reasoning makes sense, thanks :)