उच्च उपलब्धता (HA) भनेको विफलता हुँदा पनि डेटाबेस उपलब्ध राख्नु हो — replication (standby replicas) को माध्यमबाट, automatic failover (primary विफल हुँदा replica लाई promote गरेर), र उचित आर्किटेक्चरको माध्यमबाट। लक्ष्य: downtime र data loss कम गर्नु, किनकि डेटाबेस outage ले पूरो एप्लिकेशन बन्द गर्दछ।
आधार: replication + automatic 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.
