A solutions architect is designing a database solution for a web application that displays real-world financial indices. The application runs on Amazon RDS for MySQL. The database workload is highly read-heavy, with a read-to-write ratio of , and requires read latencies of less than milliseconds. During peak market hours, the CPU utilization on the database instance reaches , resulting in latency spikes. Which action should the solutions architect take to improve database read performance?
- Create Amazon RDS read replicas to offload read traffic from the primary DB instance, and configure the application to route read queries to the replica endpoints.Cevap
- BDeploy an Amazon RDS read replica and configure it as the primary failover target for automatic failover during outages instead of using a Multi-AZ deployment.
- CAttach a shared Amazon EBS gp3 volume to multiple RDS instances to enable concurrent read access to the same database files.
- DDeploy an Amazon CloudFront distribution directly in front of the RDS database and set the default Time to Live (TTL) for caching behaviors to .
Cevap
Create Amazon RDS read replicas to offload read traffic from the primary DB instance, and configure the application to route read queries to the replica endpoints.
Creating Amazon RDS read replicas is the standard method to scale database read performance. By routing read queries to the replica endpoints, the solutions architect offloads the CPU-intensive read workload from the primary DB instance, resolving the bottleneck while keeping write capacity on the primary intact.
Adım Adım Çözüm
Anahtar Kavram
Offloading read traffic using Amazon RDS read replicas