Replicated State Machines and Deterministic Logs
Reconstruct replica agreement from an ordered operation log and identify which nondeterministic choices belong in that log.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 2
- Reading time
- 1 min
In this article2 chapters
Deterministic execution preserves equality by induction
Replicas begin from equivalent state and apply the same committed operations in the same order. If applying an operation is deterministic for that state and input, equal states yield equal next states. Thus application state agrees through every common log prefix. It is possible for one replica to have applied a shorter prefix without disagreeing about committed order.
Give nondeterministic data an agreed representation
For an operation that needs to choose a timestamp or an identifier, agree on that value as part of the operation or define it deterministically from replicated state. Local clocks and random choices can otherwise make the replicas diverge. Snapshots need a log position describing which operations have been incorporated. Consensus properties describe the agreement contract used for log entries. Primary–backup failover applies related concerns when leadership changes.[1][2]