A company operates a smart home IoT platform where millions of devices send status updates to an Amazon DynamoDB table. Users query their device's latest status through a mobile dashboard, leading to high-volume, repetitive read queries on the same partition keys. During peak hours, these queries cause hot partition throttling and increase read latency. The company needs to resolve the performance bottleneck and reduce read response times to microseconds without changing the database query code. Which solution should a solutions architect recommend to meet these requirements?
- AModify the DynamoDB table partition keys to use a monotonically increasing timestamp to spread the read operations across multiple partitions.
- Deploy an Amazon DynamoDB Accelerator (DAX) cluster and update the application client to route requests to the cluster.Cevap
- CConfigure the DynamoDB table to use provisioned capacity mode and manually set a high value for Read Capacity Units (RCUs) to absorb the peaks.
- DDeploy an Amazon CloudFront distribution in front of DynamoDB and set the cache behavior minimum, maximum, and default TTLs to zero.
Cevap
The correct solution is to deploy an Amazon DynamoDB Accelerator (DAX) cluster and update the application client to route requests to the cluster.
Deploying Amazon DynamoDB Accelerator (DAX) provides an in-memory cache that reduces DynamoDB response times to microseconds. Because DAX is API-compatible, the application only needs to update its client initialization rather than its query logic, fulfilling all constraints.
Adım Adım Çözüm
Anahtar Kavram
Database query caching using Amazon DynamoDB Accelerator (DAX) for sub-millisecond latencies.