Homeglossary

Failover

Failover is a reliability mechanism that moves an application, database, network connection, or other software workload to a standby system when the primary system fails. It helps keep a service available during an outage. Failover may be automatic or manually initiated, and its effectiveness depends on accurate health checks, current data replication, and regular testing.

Build resilient apps with Emergent.

What Is Failover?

Failover moves an application, database, network connection, or workload to a standby system when the primary system fails. It keeps services available during an outage. Unlike data recovery, failover continues service now, while backups restore lost or damaged data later.

How Failover Works

Failover must detect a real problem, select a safe replacement, and direct users to it.

  1. Health checks or heartbeats monitor the primary service.
  2. The system confirms the failure is not a temporary network interruption.
  3. It identifies the authoritative service and data copy.
  4. A standby instance is promoted or activated.
  5. A load balancer, DNS record, or database client reroutes traffic.
  6. Monitoring verifies the replacement and records the event.

Types of Failover: Automatic, Manual, Active-Passive, and Active-Active

Failover approaches trade speed for control and complexity.

ApproachBest fitSpeed and risk
AutomaticAlways-on customer servicesFast, but poor health checks can trigger false failovers.
ManualLower-risk systems and planned decisionsSlower, but an operator reviews the situation first.
Active-passiveOne primary with a standbySimpler, though standby capacity must be ready.
Active-activeServices designed to run in several locationsFast and scalable, but data consistency is harder.

Benefits of Failover

Failover reduces disruption when the secondary environment is current and adequately sized.

  • Reduces downtime for customer-facing applications.
  • Limits the effect of a failed server, region, or database node.
  • Provides a repeatable response instead of improvised actions.
  • Supports maintenance by moving traffic from a component.

Practical Limits and Risks of Failover

Failover does not guarantee uninterrupted or lossless service.

  • Replication lag can leave recent writes missing after a database switch.
  • Health checks can mistake a temporary fault for a complete failure.
  • Split brain can occur if two systems accept conflicting writes.
  • A standby may lack capacity for full production traffic.
  • External APIs, queues, and identity services may not fail over with the application.

Failover, Failback, Backups, and Disaster Recovery

These practices work together but solve different problems.

PracticePrimary purpose
FailoverMoves live service to a working replacement.
FailbackReturns service to the repaired primary environment in a controlled way.
BackupsRestore data from an earlier copy after loss or corruption.
Disaster recoveryCoordinates people, systems, data, and procedures for major outages.

What Is a Failover Test?

A failover test is a planned exercise that proves a service can switch safely to its standby environment.

  1. Set recovery time and data-loss objectives.
  2. Rehearse the switch in a controlled environment where possible.
  3. Check routing, authentication, background jobs, and data integrity.
  4. Document failures, delays, and manual steps.
  5. Test failback so the original environment can safely resume service.

Designing Resilient Applications with Emergent

Identify critical dependencies and define graceful error handling before an outage. Application design and development should include recovery paths, deployment checks, and realistic failure tests. Teams using an AI app builder such as Emergent can build and test full-stack applications while planning for unavailable dependencies. Build resilient apps with Emergent.

Start Building
on Emergent today
Start Building