A company runs a production database on an Amazon RDS for PostgreSQL DB instance. The application experiences a sudden increase in read traffic, causing high database CPU utilization and increased query latency. The application requires sub-millisecond latency for frequently accessed data, and the overall read load on the primary database must be reduced. Which two actions should a solutions architect take to meet these requirements? (Select TWO.)
- Deploy an Amazon ElastiCache cluster to cache frequently accessed query results.Cevap
- Create Amazon RDS read replicas to offload read traffic from the primary DB instance.Cevap
- CEnable Amazon RDS Multi-AZ deployment and configure the application to direct read queries to the standby DB instance.
- DMigrate the database to Amazon DynamoDB and define the partition key using a monotonically increasing timestamp.
Cevap
Deploying an Amazon ElastiCache cluster to cache queries and creating Amazon RDS read replicas to offload read traffic.
To achieve sub-millisecond read latency, caching is required. Deploying an in-memory cache such as Amazon ElastiCache in front of the database stores the results of common queries, serving them extremely quickly. To offload the remaining read traffic from the primary database, Amazon RDS read replicas are used to distribute the read workload horizontally across one or more replica nodes.
Adım Adım Çözüm
Anahtar Kavram
Scaling relational database read performance using in-memory caching and read replicas.