What is a single point of failure, and how do redundancy and failover remove it?
MediumConceptScalability & Performance
Answer
A single point of failure (SPOF) is any component whose failure takes the whole system down, such as a lone database server, load balancer or network link. You remove it by running redundant copies and switching traffic automatically when one fails.
- Active-passive: a standby takes over when health checks detect that the primary has failed; simple, but the standby sits idle and failover takes seconds.
- Active-active: all copies serve traffic, so capacity is fully used and a failure only reduces capacity; shared state must be coordinated.
- Failure domains: spread replicas across racks, availability zones or regions so that one event cannot take out every copy.
- Test failover regularly: an untested standby often fails exactly when it is needed.