In active-active, every node of the cluster works and takes load: losing one does not take the service down, it only shrinks the safety margin. The paired active-passive scheme keeps a spare node or site running, but idle until a failure — this is how most database clusters are built, and the “primary data centre plus standby” setup.
How the schemes differ
| Aspect | Active-active | Active-passive |
|---|---|---|
| Who works | every node carries load | the primary serves, the standby waits |
| Service when a node fails | continues, but capacity drops | continues after the switch to the standby |
| Total capacity | adds up from all nodes | equals the capacity of one node |
| Complexity | needs request distribution and shared state | simpler, but switching takes time |
What it takes to keep both nodes active
- Request distribution: a load balancer, anycast, or DNS handing out the addresses of all nodes.
- Shared state: sessions, cache and data either live in shared storage or are replicated between nodes.
- Split-brain protection: a quorum or witness so that two severed nodes cannot each decide at the same moment that they are in charge.
- Client-side retries: after a node fails, some requests arrive twice, and operations must not break when run a second time.
Where each scheme is used
- Stateless services — web frontends and APIs: every replica behind the load balancer is active, and a node is drained and brought back without any switching.
- Databases: most often active-passive — one node takes writes while the rest replicate it and wait to be promoted; multi-master clusters where every node takes writes remain a niche solution because of conflicts and lock contention.
- Quorum stores such as etcd inside Kubernetes: nodes act as a single cluster, but a write is committed only once a majority has acknowledged it — losing a majority stops writes.
- Networks: VRRP keeps a virtual IP address on a single primary router — that is active-passive; routing across several equal links, on the other hand, is active-active.
- Disaster recovery: the standby site either waits (active-passive) or also serves traffic (active-active) — the second option costs more, but the site is already warm.
Sources
the term is written from these pages- PostgreSQL — High Availability, Load Balancing, and Replicationpostgresql.org/docs/current/different-replication-solutions.html(opens in a new tab)
- RFC 5798 — Virtual Router Redundancy Protocol (VRRP) Version 3rfc-editor.org/rfc/rfc5798(opens in a new tab)
- Microsoft Azure — Load-balancing optionslearn.microsoft.com/en-us/azure/architecture/guide/technology-choices/load-balancing-overview(opens in a new tab)
Verified 9 Nov