Company
Date Published
Author
Franck Pachot
Word count
2626
Language
English
Hacker News points
None

Summary

YugabyteDB achieves high availability and disaster recovery through its synchronous replication strategy, which requires a quorum of replicas to be available for a write operation to be considered complete. This ensures zero data loss in case of a failover. However, this approach introduces latency to all writes and can lead to split brain scenarios where both sides of the cluster believe they are the primary, leading to data corruption. To mitigate these issues, YugabyteDB uses asynchronous replication between two data centers to provide disaster recovery capabilities while maintaining high availability. This setup requires careful planning and configuration to ensure seamless failover and minimal data loss in case of a disaster. The correct approach involves using synchronous quorum replication on each data center for fault tolerance and asynchronous replication between the two clusters for disaster recovery, with a focus on ensuring ACID guarantee and minimizing latency.