Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Change the default TTL (cache) to 5 minutes in the Parameters utility #4193

Closed
2 tasks done
leandrodamascena opened this issue Apr 24, 2024 · 2 comments · Fixed by #4279
Closed
2 tasks done
Labels
feature-request feature request parameters Parameters utility v3 Features that will be included in Powertools v3.

Comments

@leandrodamascena
Copy link
Contributor

Use case

When using the Parameters utility, customers can leverage caching to minimize API calls. The default cache TTL is 5 seconds, after which Powertools expires the cache and if the parameter value is required inside the Lambda handler, a new API call may be triggered.

We suggest increasing this value to 300 seconds (5 minutes) to avoid spikes in a highly intensive workload.

Solution/User Experience

Increase the default TTL value to 300 seconds (5 minutes).

Alternative solutions

No response

Acknowledgment

@leandrodamascena leandrodamascena added triage Pending triage from maintainers feature-request feature request labels Apr 24, 2024
@leandrodamascena leandrodamascena added parameters Parameters utility v3 Features that will be included in Powertools v3. and removed triage Pending triage from maintainers labels Apr 24, 2024
@leandrodamascena leandrodamascena moved this from Triage to Working on it in Powertools for AWS Lambda (Python) Apr 24, 2024
@leandrodamascena leandrodamascena added this to the Powertools v3 milestone Apr 24, 2024
@heitorlessa
Copy link
Contributor

Small note that the reason we're choosing 5 minutes is to sync with customers feedback who used SSM extension

@github-actions github-actions bot added the pending-release Fix or implementation already in dev waiting to be released label May 6, 2024
@heitorlessa heitorlessa removed the pending-release Fix or implementation already in dev waiting to be released label May 6, 2024
@github-project-automation github-project-automation bot moved this from Working on it to Coming soon in Powertools for AWS Lambda (Python) May 6, 2024
Copy link
Contributor

github-actions bot commented May 6, 2024

⚠️COMMENT VISIBILITY WARNING⚠️

This issue is now closed. Please be mindful that future comments are hard for our team to see.

If you need more assistance, please either tag a team member or open a new issue that references this one.

If you wish to keep having a conversation with other community members under this issue feel free to do so.

@heitorlessa heitorlessa moved this from Coming soon to Shipped in Powertools for AWS Lambda (Python) Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request feature request parameters Parameters utility v3 Features that will be included in Powertools v3.
Projects
Status: Shipped
2 participants