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

Cache quota calls #22

Merged
merged 2 commits into from
Mar 15, 2024
Merged

Cache quota calls #22

merged 2 commits into from
Mar 15, 2024

Conversation

taraspos
Copy link

Summary

We are doing a lot of calls to get service quotas, but it's rarely changes.
Especially for the cases where quota is per instance (like per SNS topic or per EKS cluster) it being queried over and over again just to get the same value. This adds 1h caching, which should reduce execution time and amount of calls to the API (and will get rate-limited less)

@taraspos taraspos requested review from evanfreed and logand22 March 13, 2024 19:30
Copy link

@logand22 logand22 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this.

@taraspos taraspos merged commit bed9154 into teleport Mar 15, 2024
4 checks passed
@taraspos taraspos deleted the taras/cache-quota-calls branch March 15, 2024 08:48
@fheinecke fheinecke mentioned this pull request May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants