Command Palette

Search for a command to run...

PHASE 14Advanced ~6 min· topic 2 of 8

Topic 14.2

Disaster Recovery

In one line

RPO, RTO, backup and restore at the REGION level — the plan for when the whole datacenter dies.

0/8 · 0%

Think of it like this

Keeping a spare house key with a neighbour in case your own copy is lost in a fire. It costs a little extra effort now, so you're not completely locked out later.

Key ideas

  1. 01

    RTO (Recovery Time Objective): how fast you must be back — e.g. 4h.

  2. 02

    RPO (Recovery Point Objective): how much data you may lose — e.g. 15 min.

  3. 03

    Backup: nightly snapshots + WAL shipping → RPO up to minutes; restore drills are the real test.

  4. 04

    DR strategies ladder: backup-restore (cheap, slow) → pilot light (minimal running, scale up) → warm standby (replica region, small) → multi-site active (fastest, priciest).

  5. 05

    Region failure handling: DNS/global-LB cutover to the DR region; state replication (async, so RPO>0) decides the loss.

  6. 06

    The honest line: 'RTO 4h, RPO 15min, will-drill quarterly' — numbers beat vibes.

  7. 07

    Interview: always be able to say your RPO/RTO and where the trade got set.

Java / Spring map

  • →

    Spring config per-region; automation for restore (Terraform + scheduled restore tests).

Code & diagrams

DR strategies by cost and RTOdiagram
Rendering diagram…

Explain without notes

01

Region A is gone. Walk the cutover to region B: what DNS/LB do, what data is lost (RPO), how fast (RTO).

Practice

01

Write DR plan: RPO/RTO, backup cadence, restore drill checklist, cutover steps.

Trade-offs

  • ↔

    Every 9 of availability and every minute of RPO is a line on the infrastructure bill.

Run it in production

Completion checklist

  • My DR answers always carry explicit RPO/RTO and a drill story.

Back to phase