A developer is maintaining an application that runs on a fleet of Amazon EC2 instances and frequently retrieves configuration parameters from AWS Systems Manager Parameter Store. Due to a recent surge in traffic, the application is receiving HTTP 400 (ThrottlingException) errors when calling the Parameter Store API. Which of the following is the most cost-effective way to resolve this throttling issue with minimal latency?
- AMigrate the configuration parameters from AWS Systems Manager Parameter Store to AWS Secrets Manager.
- BStore the configuration parameters in an Amazon DynamoDB table and retrieve them using a Scan operation.
- Cache the configuration parameters locally in the application memory with a defined Time to Live (TTL).Cevap
- DPublish the configuration parameters to an Amazon Kinesis data stream using a single static partition key.
Cevap
Cache the configuration parameters locally in the application memory with a defined Time to Live (TTL).
Caching the configuration parameters locally in the application's memory with a Time to Live (TTL) prevents redundant API requests to Systems Manager Parameter Store. This resolves the throttling errors while reducing retrieval latency to sub-milliseconds without incurring additional AWS service charges.
Adım Adım Çözüm
Anahtar Kavram
Caching Systems Manager Parameter Store values locally to prevent API throttling and improve retrieval latency.