A digital publishing company hosting peer-reviewed journals uses a Multi-AZ Amazon RDS for PostgreSQL DB instance to store journal articles and metadata. The platform experiences a massive increase in read requests when new volumes are published. The search engine queries are complex, and the database CPU utilization regularly exceeds , causing latency spikes for authors submitting new articles. The metadata does not change after publication, but high availability of the cached data is critical to ensure uninterrupted access. Which solution should a solutions architect implement to resolve the performance bottleneck while ensuring database efficiency?
- Deploy an Amazon ElastiCache for Redis replication group with Multi-AZ enabled, and configure the application to utilize a cache-aside strategy for metadata queries.Answer
- BDeploy an Amazon ElastiCache for Memcached cluster, and configure the application to utilize a cache-aside strategy for metadata queries to handle the read volume.
- CModify the existing Amazon RDS for PostgreSQL DB instance to enable a Multi-AZ deployment, and redirect read queries for journal metadata to the standby DB instance.
- DDeploy an Amazon ElastiCache for Memcached cluster, configure replication across multiple Availability Zones using read replicas, and use a write-through strategy for metadata.
Answer
Deploy an Amazon ElastiCache for Redis replication group with Multi-AZ enabled, and configure the application to utilize a cache-aside strategy for metadata queries.
The correct option proposes deploying an Amazon ElastiCache for Redis replication group with Multi-AZ enabled. Redis supports replication and automatic failover across multiple Availability Zones, ensuring high availability. Applying a cache-aside pattern allows the application to serve the read-heavy, static journal metadata from the cache first, successfully reducing the database CPU utilization below the bottleneck.
Step-by-Step Solution
Key Concept
Selecting the appropriate caching engine and architecture based on high-availability and replication requirements.
Estimated Time:2m 0s