Standby / failover
A spare copy of the database kept in sync. If the primary dies, the standby takes over. It adds safety, not speed.
See it in action
These lessons put standby / failover to work. Read one, then play it and watch what happens without it.
- CDN, queues and no single point of failure: 30,000 req/s. Half are images and scripts, and writes trigger slow work like emails. Nothing may go down if one…
- Survive a crash: Launch day: 10,500 requests per second. Machines die all the time. Any single one may crash, and once failover ends,…
- Go worldwide: Half your users are now outside the US: 30% in Europe and 20% in Asia. A read from Mumbai to Virginia takes about 190…
- Undo a mistake: At 2 p.m. an engineer runs a delete without its filter, and every order is gone. Your database has a standby and a…
- Three copies, no leader: A shopping cart is kept on 3 machines, and none of them is in charge: any of them takes a write. Right now a write…