# Failover

> Switching work to a standby copy when the main one fails.

**Field:** Infrastructure  
**Category:** Reliability  
**Also known as:** Automatic Failover, Active-Passive, Active-Active, Standby Server, Failback

## Think of it like

Think of it like a spare goalkeeper. When the first one is hurt, the second runs on and the game goes on.

## Definition

Failover is switching work from a part that failed to a standby that is ready to take over. In an active-passive setup, one copy does the work and the other waits. In an active-active setup, both share the work. Either one can carry it all. Failover can start on its own after a failed health check, or be done by hand. Moving back to the first copy once it is fixed is called failback.

## Example

Emma's database has a spare copy in a second data centre. The main one stops. The spare takes over in under a minute, and the app joins it.

## Why it matters

A spare that nobody switches to does not help. Failover is what turns redundancy into uptime.

## Common mistake

Never testing it. A failover that has not been tried often fails on the day, so practise it on purpose.

## Three principles

- **Active-passive.** One copy works and one waits.
- **Active-active.** Both work, and either can carry it all.
- **Test it.** An untried failover often fails.

## Related terms

- [Redundancy (Systems)](https://learn.benibix.com/term/infrastructure/redundancy)
- [High Availability (HA)](https://learn.benibix.com/term/infrastructure/high-availability)
- [Health Check](https://learn.benibix.com/term/infrastructure/health-check)
- [Load Balancer](https://learn.benibix.com/term/infrastructure/load-balancer)
- [Disaster Recovery](https://learn.benibix.com/term/infrastructure/disaster-recovery)
- [Chaos Engineering](https://learn.benibix.com/term/infrastructure/chaos-engineering)

## Told apart from

- [Redundancy vs Failover](https://learn.benibix.com/compare/redundancy-vs-failover): People think having a spare means the service stays up, and it does not on its own. Redundancy is owning the spare. Failover is the switch that moves the work to it when the main part dies. A spare that nothing switches to sits idle while the site is down, so the switch has to be built and tested too.

![Three panels. Redundancy: three web servers where two would do. Failover: a main database crossed out and an arrow moving traffic to a standby copy. Graceful degradation: a shop page with the suggestions box greyed out while the pay button still works.](https://learn.benibix.com/diagrams/inf4-failover.svg)

---

Source: https://learn.benibix.com/term/infrastructure/failover
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
