AlgoViz

Achieving high availability

medium 30 min

High availability is built from four pillars: spare copies of everything (redundancy), a way to switch to them (failover), a way to share work between them (load balancing), and a way to notice failures fast (monitoring).

Where it shows up

The same pattern appears across everyday software.

  • Amazon RDS Multi-AZ

    Keeps a synchronous standby in another zone and fails over by itself, typically in 60 to 120 seconds. Active-passive, as a product.

  • Amazon Aurora

    Promotes a reader when the writer fails. The documentation says service is typically back in under 60 seconds, often under 30.

  • Netflix Chaos Monkey

    Randomly terminates instances in production, so teams find out about missing spares during the day.

  • Routers with VRRP

    Two routers share one virtual address. When the active one goes silent, the other takes the address.

  • etcd and ZooKeeper

    Run on 3 or 5 machines and act only with a majority, which is how many systems choose one primary safely.

  • Aircraft and data centers

    Several independent computers or power feeds do the same job, so that one failure is an entry in a log.