Hochverfügbarkeit (HA) bedeutet, die Datenbank verfügbar zu halten, auch wenn Ausfälle auftreten — durch Replikation (Standby-Repliken), automatisches Failover (Hochstufen einer Replik, wenn der Primary ausfällt) und angemessene Architektur. Das Ziel: Downtime und Datenverlust minimieren, da Datenbankausfälle die gesamte Anwendung lahmlegen.
Die Grundlage: Replikation + automatisches 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.
