Primary–Backup Replication and Failover
Transfer service to a replica while preserving the agreed point in the operation history and the authority to accept new writes.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 2
- Reading time
- 1 min
In this article2 chapters
A backup follows the primary’s ordered changes
The primary sends operations or state updates in order. A backup can acknowledge their receipt or durable recording according to the system’s promise. A new backup may start from a snapshot, then apply changes after that snapshot’s identified log position. If the snapshot and offset do not describe the same state, replay can skip or duplicate updates.
Promotion changes membership and write authority
If a backup takes over, it must know which acknowledged updates belong to its chosen history. It also needs a rule ensuring the old primary cannot continue making conflicting changes. A timeout alone does not supply that rule. Replication acknowledgments explain what prior clients were promised. Fencing uses authority versions at the resource boundary.[1]