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

[route53] add 20m cache for calls #43

Merged
merged 3 commits into from
Jul 15, 2024
Merged

Conversation

taraspos
Copy link

@taraspos taraspos commented Jul 12, 2024

Summary

This PR adds 20m cache to route53 calls and reuses responses, which will make twice less calls to route53.

All Amazon Route 53 API requests
For the Amazon Route 53 APIs five requests per second per AWS account. If you submit more than five requests per second, Amazon Route 53 returns an HTTP 400 error (Bad request). The response header also includes a Code element with a value of Throttling and a Message element with a value of Rate exceeded.

https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DNSLimitations.html#limits-api-requests

@taraspos taraspos requested a review from bpdohall July 12, 2024 14:41
@taraspos taraspos force-pushed the taras/r53-calls-cache branch from 2010e1f to f21b7e5 Compare July 15, 2024 12:06
aws_quota/check/route53.py Outdated Show resolved Hide resolved
@taraspos taraspos changed the title [route53] add 10m cache for calls [route53] add 20m cache for calls Jul 15, 2024
@taraspos taraspos merged commit d6ac2bb into teleport Jul 15, 2024
4 checks passed
@taraspos taraspos mentioned this pull request Jul 15, 2024
@taraspos taraspos deleted the taras/r53-calls-cache branch July 15, 2024 12:24
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