A UK healthcare SaaS company

4-hour recovery point

At most about four hours of production data is at risk if the primary cloud is lost, and every production database has a replica ready to promote.

4hOff-site recovery point

Outcomes

  • Recovery point of about 4 hours for loss of the primary cloud.
  • 6 of 6 production databases have a promotable cross-region replica.
  • Exports run on dedicated read replicas, not on production primaries.

The problem

Nightly exports to a second cloud provider gave a 3-2-1 backup, but up to a day of data was at risk if the primary cloud was lost.

Exports ran against production primaries and added load to them.

What I built

  • Extended the 3-2-1 backup to the newer platform's production databases.
  • Moved exports onto dedicated read replicas, so primaries carry no export load.
  • Added 3-hourly intraday copies to the second cloud provider. 3-hourly, not 4-hourly, because the UK export takes about an hour.
  • Added cross-region read replicas for all 6 production databases, on the same tier and disk as each primary so they can take production load once promoted. UK data replicates to a second EU region.
  • Moved production Redis to high availability with Redis 7 in all 4 regions, with blue-green cutovers.

Architecture and stack

  • GCP: Cloud SQL replicas and exports, Cloud Storage, Cloud Scheduler, Memorystore
  • A second cloud provider for off-site copies
  • Terraform, Cloud Monitoring