Why Use Read Replicas for RDS Scalability?
How Amazon RDS read replicas scale reads: async replication, ReplicaLag, promotion, cross-Region replicas, engine limits and pairing with Multi-AZ.
Use Amazon RDS read replicas when reads, not writes, are what overload your database. A read replica is a read-only copy that RDS keeps updated with asynchronous replication, so you can send reporting, search and dashboard queries to it and keep the primary free for writes. Replicas scale reads; they do not replace Multi-AZ for failover.
This guide explains how replicas work inside RDS, what replica lag is and how to watch it, when to promote a replica, and where each database engine behaves differently. Every limit and command here was checked against the Amazon RDS User Guide in November 2026. If you are new to the service, start with our overview of what Amazon RDS is and how it simplifies database management.
Key takeaways
- A read replica is a separate DB instance that accepts read-only connections. RDS copies changes to it asynchronously, so replica data can be behind the primary.
- The default quota is 15 read replicas per primary DB instance per Region. For RDS for Oracle, AWS recommends keeping it to 5 to limit lag.
- You must turn on automated backups (a backup retention period other than 0) on the source before you can create a replica.
- The CloudWatch metric
ReplicaLagtells you how far behind a replica is, in seconds. A value of-1means replication is not active or RDS cannot measure it. - Promotion turns a replica into a standalone, writable instance. It stops replication, reboots the instance and cannot be reversed.
- Multi-AZ standby replication is synchronous and the standby serves no reads. Read replicas are asynchronous and serve reads. Most production systems use both.
- RDS does not autoscale read replicas. You add and remove them yourself or through your own automation.
What a read replica actually is
When you create a read replica, you point RDS at an existing DB instance, the source. RDS takes a snapshot of that source, builds a new DB instance from the snapshot and then turns on the database engine's own replication to keep the copy current. From that moment the source is called the primary. Your application keeps sending writes to the primary, and you can send read-only queries to the replica, which has its own endpoint and behaves like any other DB instance for connections.
The replica copies every database on the source. You cannot pick a subset of schemas or tables. It is billed as a normal DB instance at the rate of the instance class you choose, and AWS does not charge for the data transfer between a source and a replica in the same Region. Cross-Region replicas are different, which is covered below.
Two engines add a twist. RDS for Oracle can create a replica in mounted mode and RDS for Db2 can create one in standby mode. Neither accepts user connections, so neither can serve reads. Their purpose is cross-Region disaster recovery, not read scaling. When people talk about "read replicas" for scaling, they mean the open, read-only kind.
Why read replicas help scalability
A single DB instance has a ceiling on CPU, memory, network and I/O. You can raise that ceiling by moving to a bigger instance class, but that only works up to the largest class, and every query still competes on the same machine. Read replicas let you scale out instead. If eighty percent of your traffic is product listings, search pages and dashboards, that traffic can spread across several replicas while the primary handles orders and updates.
The AWS documentation lists four main reasons to use them, and they map well to real workloads:
- Read-heavy applications that have outgrown the compute or I/O capacity of one instance.
- Reporting and analytics queries that would otherwise slow down production. A long report that scans millions of rows can run on a replica without touching the primary's buffer cache.
- Serving reads while the primary is briefly unable to take I/O, for example during a backup I/O suspension or maintenance. Data may be stale during that window.
- Disaster recovery, by promoting a replica if the primary fails, especially when the replica sits in another Region.
What replicas do not fix is write pressure. Every write still lands on the primary, and every replica has to replay those writes. If your bottleneck is inserts and updates, you need a larger primary, better indexes, batching, or a different data design such as sharding. Adding replicas to a write-bound system can even make things worse, because each replica adds replication work.
How replication works under the hood
RDS does not invent its own replication protocol. It uses the engine's built-in method, and that explains most of the differences between engines.
| Engine | Replication method | Can the replica be made writable? | Replica of a replica |
|---|---|---|---|
| RDS for MySQL | Logical (binary log) | Yes, by setting read_only to 0 | Supported |
| RDS for MariaDB | Logical (binary log) | Yes, by setting read_only to 0 | Supported |
| RDS for PostgreSQL | Physical (WAL) | No, promote it instead | Certain versions |
| RDS for Oracle | Physical (redo, Data Guard) | No, promote it instead | Not supported |
| RDS for SQL Server | Physical | No, promote it instead | Not supported |
| RDS for Db2 | Physical | No, promote it instead | Not supported |
Logical replication on MySQL and MariaDB replays statements or row changes from the binary log. That is why a MySQL replica can be opened for writes: it is a separate database applying a change stream, and you can add an index on it before promotion. The risk is that writing to replicated tables on a replica can break replication, so AWS warns that changing read_only carelessly is a common cause of lag and errors.
Physical replication on PostgreSQL, Oracle, SQL Server and Db2 ships the engine's low-level log records, so the replica is a block-for-block copy that the engine will not let you write to. The trade-off is that physical replicas follow the primary more exactly, but you cannot tune them independently in the same way.
There are also differences in how logs are kept. MySQL and MariaDB keep binary logs that have not yet been applied. PostgreSQL uses replication slots for WAL retention, and AWS exposes OldestReplicationSlotLag and TransactionLogsDiskUsage to show when a lagging cross-Region replica is making the primary hold on to WAL. Oracle keeps at least two hours of logs on the source when there are no cross-Region replicas. If a replica falls far behind, these logs grow and use storage on the primary, which is one reason to fix broken replication quickly.
Creating a read replica
Before you create a replica, check one prerequisite: automated backups must be on for the source, meaning its backup retention period is not 0. The same rule applies to a replica you plan to use as the source for another replica.
From the AWS CLI, the command is create-db-instance-read-replica:
aws rds create-db-instance-read-replica \
--db-instance-identifier orders-replica-1 \
--source-db-instance-identifier orders-primary \
--db-instance-class db.r6g.large
Some details matter in production. When RDS starts the snapshot, a Single-AZ source has a very brief I/O suspension, which AWS says typically lasts about one second. If the source is Multi-AZ, the snapshot comes from the standby and there is no suspension on the primary. Long-running transactions slow down creation, so it is better to wait for them to finish. After the replica becomes available, its storage keeps loading blocks from Amazon S3 in the background, so the first queries can be slower than normal until initialization completes.
AWS recommends that the replica use the same or a larger instance class and storage type than the source. This is not just about read speed. A smaller replica that cannot apply changes as fast as the primary produces them will fall further behind every hour. AWS also recommends creating replicas in the same VPC as the source inside a Region, to avoid CIDR overlap problems that can make a replica unstable.
You can create a replica as a Multi-AZ DB instance, which gives the replica its own standby in another Availability Zone. That choice is independent of whether the source is Multi-AZ.
Replica lag: the number to watch
Because replication is asynchronous, a replica always trails the primary by some amount. Usually it is small. Under heavy writes, long transactions, an undersized replica or a network problem, it can grow to minutes. Replica lag is the single most important metric for any system that reads from replicas.
RDS publishes it to CloudWatch as ReplicaLag, measured in seconds. What it measures depends on the engine:
- MySQL and MariaDB report the
Seconds_Behind_Mastervalue fromSHOW REPLICA STATUS. - PostgreSQL reports the time since the last replayed transaction, based on
pg_last_xact_replay_timestamp(). - SQL Server and Db2 report the maximum lag across databases that have fallen behind.
- Oracle combines the Data Guard apply lag with the time since the replica last received data.
A value of 0 means the replica has caught up. A value of -1 means replication is not active or RDS cannot determine the lag, for example during setup or when the replica is in the error state. Treat -1 as an alert condition, not as "zero lag".
On MySQL and MariaDB, AWS names three common causes of lag: network outages, writes to tables on the replica after read_only has been changed, and nontransactional storage engines such as MyISAM. Replication is only supported for InnoDB on MySQL and XtraDB on MariaDB, so a stray MyISAM table is worth checking first when a replica misbehaves.
A sensible CloudWatch alarm sets a threshold that matches what your application can tolerate. A product catalogue might accept 30 seconds of staleness. A balance screen might accept none, which means that query should not go to a replica at all.
aws cloudwatch put-metric-alarm \
--alarm-name orders-replica-1-lag \
--namespace AWS/RDS \
--metric-name ReplicaLag \
--dimensions Name=DBInstanceIdentifier,Value=orders-replica-1 \
--statistic Maximum --period 60 --evaluation-periods 5 \
--threshold 30 --comparison-operator GreaterThanThreshold \
--alarm-actions arn:aws:sns:ap-south-1:111122223333:db-alerts
For a wider view of RDS metrics, Performance Insights and Enhanced Monitoring, see our guide to RDS performance monitoring tools.
Replication status values
Besides lag, the replica has a replication status, visible in the console under Connectivity and security or from describe-db-instances. The main states are replicating, error, terminated and, for MySQL and MariaDB, stopped. For MySQL, MariaDB and PostgreSQL, if replication stays stopped for more than 30 consecutive days, RDS terminates it to protect storage on the primary. For Oracle, replication is terminated after 8 hours if the replica runs out of storage, and the replica must then be re-created.
Designing the application for stale reads
The database side is simple compared to the application side. Once you have replicas, your code needs a rule for which queries may go where. A few patterns work well:
- Read-your-own-writes. After a user saves something, read it back from the primary for that request or for a short window, so they never see their own change disappear.
- Split by query type. Reporting, search and listing pages go to replicas. Checkout, account balance and anything inside a transaction go to the primary.
- Health-aware routing. If
ReplicaLagcrosses your threshold, send reads back to the primary until the replica catches up.
RDS does not give you a single load-balanced reader endpoint for instance replicas. Each replica has its own endpoint. Teams usually spread traffic with a connection pool that holds several endpoints, Route 53 weighted records, or a proxy. Amazon Aurora is different: it has a cluster reader endpoint and Aurora Auto Scaling for replicas, which is one reason teams with heavy read growth look at Aurora.
Because RDS does not autoscale instance read replicas, plan capacity yourself. Watch CPU, connections and lag on the replicas, and add one before peak periods rather than during them, since creation and storage initialization take time.
Read replicas versus Multi-AZ
This comparison comes up in almost every AWS interview and design review, and the two features are easy to confuse because both create a second copy of the database.
| Point | Multi-AZ DB instance (standby) | Read replica |
|---|---|---|
| Main goal | High availability | Read scaling, reporting, DR |
| Replication | Synchronous | Asynchronous |
| Serves reads | No | Yes |
| Failover | Automatic, same endpoint | Manual promotion, new endpoint |
| Data loss on failure | Designed to avoid it | Anything not yet replicated |
| Location | Another AZ in the same Region | Same AZ, another AZ or another Region |
The practical answer is that they are complementary. A Multi-AZ primary protects writes against an Availability Zone failure, and replicas take read load off it. AWS documents exactly this layout: a primary in one AZ, a synchronous standby in a second and an asynchronous read replica in a third. Our posts on Single-AZ versus Multi-AZ RDS and why Multi-AZ is recommended for production go deeper on the standby side.
A related design is the Multi-AZ DB cluster, which has one writer and two readable standbys. That is a separate deployment type with its own rules, and it should not be confused with instance read replicas.
Promoting a replica
Promotion turns a read replica into a standalone DB instance that accepts writes. You run it with promote-read-replica or the Promote action in the console:
aws rds promote-read-replica \
--db-instance-identifier orders-replica-1 \
--backup-retention-period 7
RDS stops replication and reboots the instance before making it available, and the process takes a few minutes or longer depending on size. It is one-way. The promoted instance keeps its parameter group and option group, you can create new replicas from it and use point-in-time restore, but it can never again be a replication target. Promoting one replica has no effect on the other replicas of the same source.
AWS lists a few things to do first. Stop writes to the primary and wait until ReplicaLag reaches 0 if you want no data loss. Make sure the replica is not in the backing-up state, because promotion is blocked then. Enable backups and take at least one so the new instance has a recovery point.
Common reasons to promote are recovering from a failed primary, especially across Regions, splitting a database into shards, and running heavy DDL on MySQL or MariaDB. For the DDL case you can set read_only to 0 on the replica, build indexes there while the primary keeps serving traffic, then promote and switch the application over. For Oracle and SQL Server, AWS also supports a switchover, where the old source becomes the new replica, which is cleaner for planned role changes.
Cross-Region read replicas
All six engines support creating a replica in a different AWS Region. You run the create command in the destination Region and give the source as an ARN. For an encrypted source you must also pass a KMS key from the destination Region, and the source must itself be encrypted.
aws rds create-db-instance-read-replica \
--region ap-southeast-1 \
--db-instance-identifier orders-replica-sg \
--source-db-instance-identifier arn:aws:rds:ap-south-1:111122223333:db:orders-primary \
--kms-key-id alias/rds-sg
Cross-Region replicas serve three purposes: disaster recovery, reads closer to users in another geography, and migrating a database between Regions. They come with extra rules. Lag is usually higher because of distance. Data transfer out of the source Region is charged for the initial snapshot and for every change. AWS cannot guarantee more than five cross-Region replicas per source because of VPC ACL limits. For PostgreSQL, deleting the source sets a cross-Region replica to terminated instead of promoting it, while for the other engines the replica is promoted.
For MySQL and MariaDB you can cut transfer costs by creating one replica in the remote Region and then creating further replicas from that one, so only one copy crosses the Region boundary. Our guide to RDS billing and cost optimization covers the rest of the cost picture.
Security and backups for replicas
A replica holds a full copy of your data, so treat it like the primary. Put it in private subnets, restrict its security group to the application tier, and use the same encryption settings. A replica of an encrypted source is encrypted. Our post on securing an RDS database in a private subnet applies to replicas as well.
Backup support differs by engine. MySQL, MariaDB, Oracle and Db2 replicas support automated backups and manual snapshots. PostgreSQL replicas support automated backups from version 14.1 onward; on earlier versions you take manual snapshots. Remember that replication is not a backup: a dropped table on the primary is dropped on every replica within seconds. Keep automated backups and snapshots on the primary, as described in how RDS snapshots and automated backups work.
Best practices checklist
- Confirm the workload is read-bound before adding replicas. Check the read and write mix in Performance Insights or your query logs.
- Size replicas the same as or larger than the primary so they can keep up with write volume.
- Alarm on
ReplicaLag, including the-1value, and on replication status changes through RDS event subscriptions. - Write explicit routing rules in the application. Never send transactional reads to a replica by accident.
- Keep replicas in the same VPC as the source inside a Region.
- On MySQL and MariaDB, keep
read_onlyat its default unless you are deliberately preparing a promotion. - Practise promotion in a test environment and write a runbook with the exact commands and DNS changes.
- Delete replicas you no longer need, because each one is billed as a full DB instance.
If you want hands-on practice with RDS, VPC design and CloudWatch alongside the rest of the AWS associate syllabus, our AWS Solutions Architect Associate training runs in the Kharadi, Pune classroom and live online across India.
Frequently asked questions
How many read replicas can one RDS instance have?
The default quota is 15 read replicas per primary DB instance in each Region, and it is adjustable through Service Quotas. For RDS for Oracle, AWS recommends staying at 5 or fewer to keep lag down.
Is RDS read replica replication synchronous?
No. RDS uses the engine's asynchronous replication, so a replica can trail the primary. Only the Multi-AZ standby uses synchronous replication, and that standby does not serve reads.
Can I write to an RDS read replica?
Only on MySQL and MariaDB, by setting the read_only parameter to 0, and doing so can break replication. On PostgreSQL, Oracle, SQL Server and Db2 you must promote the replica to write to it.
What does ReplicaLag = -1 mean?
It means replication is not active or RDS cannot measure the lag, for example during setup or when the replica is in an error state. Treat it as a problem to investigate, not as zero lag.
Do read replicas replace Multi-AZ?
No. Multi-AZ gives automatic failover with synchronous replication. Read replicas scale reads and can be promoted manually. Production systems commonly use both.
Does RDS automatically add read replicas when load increases?
No. RDS does not autoscale instance read replicas. You create and delete them yourself. Aurora offers replica auto scaling, which is a separate service.
Can I undo a read replica promotion?
No. Promotion is permanent. The promoted instance becomes a standalone DB instance and cannot be turned back into a replica, although you can create new replicas from it.
Are cross-Region read replicas charged for data transfer?
Yes. Data sent out of the source Region for the initial snapshot and for ongoing changes incurs RDS data transfer charges. Replication within the same Region is not charged for transfer.
References
What's Your Reaction?
Like
0
Dislike
0
Love
0
Funny
0
Angry
0
Sad
0
Wow
0