RDS high availability, backups and read replicas

Intermediate · 7 min

Multi-AZ instances and clusters, failover, automated backups and point-in-time restore, snapshots, read replicas and disaster recovery.

Before thisRDS engines and operations

BeSA Cloud Academy · 7 min

RDS high availability, backups and read replicas

The player loads from youtube-nocookie.com when you press play. Nothing reaches YouTube before that.

Taught by BeSA Cloud AcademyReport a problem with this video
Not started
Set this lesson's status

What you'll learn

  • Multi-AZ is for availability, read replicas are for read capacity, and backups are for undoing mistakes. None replaces another.
  • A Multi-AZ instance has a synchronous standby you can't read. A Multi-AZ cluster has a writer and two readable standbys.
  • Failover changes where the endpoint's DNS name points. Applications must reconnect, and must not cache the old address.
  • Read replicas copy asynchronously, so reads from them can be stale.
  • Automated backups allow restore to any point in the retention period, up to 35 days, always into a new database.
  • A backup you have never restored is a hope. Rehearse the restore and time it.

Three different failures

A database can let you down in three ways. The machine or its zone dies. It’s healthy but can’t keep up with reads. Or it works perfectly and faithfully executes your mistake. Each needs its own answer, and mixing them up is how people discover they had no backup. Replication covers the theory.

Multi-AZ: surviving hardware

A Multi-AZ DB instance keeps a standby in another Availability Zone with synchronous replication. A commit waits until both have it, so failover doesn’t lose committed data, and writes cost a little more latency. The standby serves no traffic. It’s a spare engine, not a second one.

A Multi-AZ DB cluster has one writer and two readers in three zones. It uses semisynchronous replication, where at least one reader acknowledges each commit. The readers take read traffic and are failover targets, with typically faster failover and lower write latency than the single-standby form. It is offered for a narrower set of engines and versions.

On failure, RDS promotes a standby and repoints the endpoint’s DNS name. Your connections break. Applications need connect timeouts, retries and a pool that discards dead connections, and must honour the short DNS TTL. Test it by rebooting with failover and watching your own error rate.

Backups: surviving yourself

Automated backups take a daily snapshot and ship transaction logs to S3 every five minutes. Together they allow point-in-time restore to any second within the retention period. Retention runs from 0, which disables them, to 35 days. The default is 1 day through the API and CLI, 7 through the console. Set it on purpose.

A restore never rewinds the existing database. It creates a new one with a new endpoint. On a local emulator:

$ aws rds restore-db-instance-to-point-in-time \
    --source-db-instance-identifier orders-db \
    --target-db-instance-identifier orders-restored \
    --use-latest-restorable-time
orders-restored  orders-restored.aaaaaaaaaa.eu-west-1.rds.amazonaws.com

So recovery has steps after the restore: check parameter groups and security groups, copy back the lost rows or repoint the application, and recreate replicas. The restore itself can take a long while for a large database, and that time is part of your outage.

Manual snapshots last until you delete them. Use them before risky changes and for long-term copies. Automated backups can be removed with the instance unless you keep them, so take a final snapshot and keep deletion protection on.

Read replicas: more readers

A read replica is a separate database fed by asynchronous replication, with its own endpoint. RDS allows up to 15 per source. Your application chooses to send reads there. It suits reporting, search pages and heavy queries that would bother the primary.

Asynchronous means lag. Watch the ReplicaLag metric, and don’t read back a user’s own fresh write from a replica. Replicas don’t help write throughput, and each is billed as an instance.

A replica can be promoted to a standalone database. That’s manual, breaks replication and changes the endpoint. Replicas can also be in another Region.

Comparing them

Multi-AZ instance Multi-AZ cluster Read replica
Replication synchronous semisynchronous asynchronous
Serves reads no yes yes
Automatic failover yes yes no
Can be in another Region no no yes

Region loss

Multi-AZ stays within one Region. For a Regional disaster, choose between a cross-Region replica you promote (faster, costs more) and cross-Region copies of backups (cheaper, slower). Decide how much data and time you can lose, then pick; disaster recovery works through that. Keep copies somewhere an attacker with your production credentials can’t delete them.

Whatever you choose, write the recovery steps down and practise them before you need them, with a clock running.

About the video

The embed is BeSA Cloud Academy’s 7-minute “Multi-AZ vs Read Replicas” from October 2023. Its chapters cover understanding Multi-AZ, common misconceptions and implementing read replicas. It doesn’t cover backups or point-in-time restore, and its chapters don’t mention the cluster form with readable standbys; the longer AWS talk in the links does that one. I judged it from chapters and description; its audio is flagged as original US English.

What was run: the replica and restore calls ran on moto 5.1.22, which only records them; there is no data, replication or failover behind it. Behaviour and limits come from the RDS user guide, checked in November 2026.

Check yourself

  1. 01Someone runs DELETE without a WHERE clause on a Multi-AZ database. Does the standby save you?

    No. The delete replicates to the standby. You need point-in-time restore to a moment just before it, into a new instance, and then copy the data back.

  2. 02A user updates their profile and the next page shows the old value. The app reads from a replica. Why?

    Replication to read replicas is asynchronous and lags. Read your own recent writes from the primary.

  3. 03After a failover your application keeps failing for many minutes although the database is up. What would you check?

    Whether the client cached the old DNS answer or kept dead connections in its pool. It needs short DNS caching, timeouts and reconnect logic.

  4. 04How much data can you lose when restoring to the latest restorable time?

    Transaction logs go to S3 every five minutes, so typically up to about the last five minutes.

Go deeper

Notes

Private to you

Esc
↑↓ navigate↵ open? shortcuts

Keyboard shortcuts

Press Esc to close

Anywhere

⌘K
Search and commands
/
Search
?
This sheet
Esc
Close

Reading a lesson

J
Next lesson
K
Previous lesson
B
Bookmark