Hoge beschikbaarheid (HA) betekent dat de database beschikbaar blijft, zelfs wanneer storingen optreden — door middel van replicatie (standby replica's), automatische failover (het promoveren van een replica wanneer de primaire server faalt), en juiste architectuur. Het doel: downtime en gegevensverlies minimaliseren, omdat database-uitval de hele applicatie neerhaaldt.
De basis: replicatie + automatische failover
Primary ──(streaming replication)──▶ Standby replica(s)
If the PRIMARY fails:
→ a STANDBY is automatically PROMOTED to become the new primary (FAILOVER)
→ the application reconnects to the new primary → minimal downtime
→ Without HA, a primary failure = total database outage = application down.
