1 Answer
- Newest
- Most votes
- Most comments
0
Unfortunately there are cases where KMS api calls are just to frequent in production- or load-test loads. You'll hit the quota of the KMS APIs and get throttled.
There are 4 ways to avoid being throttled:
- change the quota/limit: Some of the quota's can be increased by filing a support ticket to AWS.
- use data key caching: If you are in control of the use of the AWS Encryption SDK (since you log the Throttling error you might be able to use this method)
- use different kind of encryption at rest. (Cloudwatch supports encryption at rest by default AWS managed SSE keys are used that will not get throttled)
- make less log lines, a good practice is to log one json object that contains everything for one request
answered 2 years ago
Relevant content
- asked a year ago
- asked a year ago
- asked 8 hours ago
- Accepted Answerasked 4 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 5 months ago