Amazon RDS Multi-AZ and Read Replicas
RDS stores user data; Multi-AZ gives disaster recovery, Read Replicas scale reads.
How it works
Amazon RDS offers different ways to improve availability and serve read traffic. A Multi-AZ DB instance has a synchronous standby in another Availability Zone for automatic failover; that standby does not serve queries. A Multi-AZ DB cluster has two readable standbys. Separate read replicas can offload reads, commonly using asynchronous replication depending on engine and configuration.
When to use it
Use the data tier of a 3-tier app; Multi-AZ for resilience, replicas for read-heavy loads.
Real-world example
A news outlet uses a Multi-AZ DB instance to support failover during an outage. It adds a compatible read replica and directs reporting queries to it to reduce read load on the primary.
Key facts
- The master takes writes and replicates to Read Replicas.
- Allow inbound only from the EC2 security group.
- Restore from a snapshot to get schemas and data quickly.
Common pitfall
Do not assume every Multi-AZ standby is unavailable for reads. A Multi-AZ DB instance standby does not serve queries, but Multi-AZ DB cluster standbys can serve read traffic.
Often confused with
Aurora, which makes Multi-AZ and Read Replicas easier.
References
Prepared by Cloud Quest. Check current behavior and limits in the AWS documentation:
Understand it for real with 3D models and simulated labs
Connect the concept to a working architecture.