Active-Active and Active-Passive Architectures

Compare active-active and active-passive architectures across traffic, state, capacity, failover, consistency, split-brain risk, cost, and operations.

Active-active and active-passive describe how multiple sites or failure domains participate in normal service. They do not, by themselves, specify the consistency model, recovery time, or degree of automation.

  • Active-active: more than one location serves production work during normal operation.
  • Active-passive: one location serves production work while another is reserved for failover or recovery.

The important questions are which operations each location can perform, where authoritative state lives, how traffic moves, and what happens during a network partition.

Compare the patterns

Dimension Active-active Active-passive
Normal traffic distributed across several locations directed to the primary location
Standby utilization capacity is already serving capacity may be absent, stopped, scaled down, or idle
Failover work isolate the failed location and rebalance promote, scale, validate, and redirect to the standby
Capacity efficiency production uses capacity in several locations standby cost depends on how much is pre-provisioned
State complexity concurrent writes, conflict, partitioning, or ownership must be managed promotion and replication lag must be managed
Typical RTO potential low if surviving locations have capacity and state ranges from hours to minutes depending on readiness
Main operational risk correlated failure, split brain, overload, hidden shared state stale standby, failed promotion, missing capacity, configuration drift

Neither pattern is automatically better. Active-active is justified when low interruption, geographic latency, or continuous use of multiple sites outweighs its state and operational complexity. Active-passive is often easier to reason about and can meet many recovery targets at lower cost.

Active-active has several forms

Stateless active-active

Requests can run in any location because durable state is external or partitioned safely. This is the easiest form, but sessions, caches, rate limits, identity, and queues can still introduce hidden state.

Read-active, write-primary

Several locations serve reads, while one location accepts authoritative writes. This can improve read latency and availability without requiring conflict resolution for concurrent writes. A primary failure still requires writer promotion.

Partitioned ownership

Each location owns writes for a defined tenant, key range, or geographic partition. Other locations may serve replicas. Failover transfers ownership. This reduces concurrent-write conflicts but requires routing and rebalancing logic.

Multi-writer active-active

Several locations accept writes to the same logical data. The system needs a defined consistency and conflict model: synchronous agreement, consensus, last-writer rules, mergeable data types, application reconciliation, or another deterministic policy.

Calling a design active-active without naming its write model hides the hardest part.

Active-passive is a spectrum

Standby state Normal condition Failover requirement
Backup and rebuild data copies and definitions exist; service stack is not running provision, restore, configure, validate, route
Pilot light core state or minimal foundation is running deploy or start application tiers, scale, validate, route
Warm standby complete stack runs at reduced capacity scale, promote state if needed, validate, route
Hot standby complete production-capable stack is ready but not normally serving promote or redirect traffic and verify state

Teams use these labels differently. Document the actual running capacity, data state, deployment state, promotion steps, and tested timings rather than relying on the label.

State is the architectural constraint

Before distributing traffic, answer:

  • Can two locations safely accept writes at the same time?
  • What happens to acknowledged writes during a partition?
  • Is stale read behavior acceptable?
  • How are unique identifiers generated?
  • Which location owns scheduled jobs and queue consumers?
  • How are sessions, locks, leases, and rate limits coordinated?
  • How are conflicting writes detected and reconciled?
  • How is the old primary fenced before the new primary accepts work?

If the answers are unclear, start with a simpler ownership model.

Split brain and fencing

Split brain occurs when isolated parts of a system both believe they are authoritative. It can lead to conflicting writes, duplicate work, over-allocation, or irreversible integrity loss.

Controls include:

  • quorum or consensus before accepting writes
  • leases with expiration
  • fencing tokens that make stale writers invalid
  • external witness or tie-breaker
  • explicit write ownership
  • disabling or isolating the old primary before promotion

Automatic failover should not trade a short outage for corrupted state. For some systems, refusing writes during uncertainty is the safer availability decision.

Traffic movement is not instantaneous

Failover time can include:

  • failure detection thresholds
  • health-check intervals and confirmation
  • route or load-balancer changes
  • DNS caching and client behavior
  • connection draining and retry
  • certificate and endpoint readiness
  • application warm-up
  • state promotion
  • validation before full traffic is admitted

A low DNS time-to-live can reduce one delay, but it does not force clients to discard cached answers, close established connections, or retry correctly.

Surviving capacity must be explicit

An active-active system running each of two locations at 70 percent utilization cannot lose one location and carry 140 percent load on the survivor. Resilience requires enough headroom, load shedding, priority, rapid scaling, or more than two locations.

Similarly, a warm standby may have the right infrastructure but lack quota, licenses, data throughput, or downstream capacity to scale under incident pressure.

Decision guide

Requirement Strong starting pattern
Hours of recovery time are acceptable and cost dominates backup and rebuild
Data must stay replicated, but application capacity may start later pilot light
Recovery in minutes with predictable operations warm or hot standby
Low global read latency, one authoritative writer read-active with write-primary
Continuous service across a local failure domain active-active stateless tiers with resilient state
Multi-region writes with very low interruption multi-writer only if consistency and conflict behavior are explicit

Common reasoning errors

Error Better rule
“Active-active guarantees zero downtime.” Detection, capacity, traffic, clients, state, and shared dependencies still matter.
“Both locations are active, so both should accept writes.” Read activity and write authority are separate design choices.
“Warm standby means a specific RTO.” Measure the actual promotion, scaling, validation, and routing workflow.
“DNS failover moves every client immediately.” Account for caches, resolvers, connections, and retry behavior.
“The surviving site can scale when needed.” Verify quota, capacity, control-plane access, and scaling time during exercises.

Continue with Recovery Strategy Patterns to choose the complete recovery operating model.

Knowledge check

Loading quiz…
Revised on Friday, September 11, 2026