1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
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
Contenus pertinents
- demandé il y a un an
- demandé il y a un an
- demandé il y a 6 mois
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 3 ans
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a un an
I think that execution reasoning makes sense, thanks :)