MonotonicCounter
Value that never decreases
Mechanism
A distributed coordination primitive where a value (clock, version, balance) never decreases. This simplifies consensus: a node seeing a higher value knows it is seeing later state, without needing to compare histories. It is the foundation of logical clocks and CRDTs, and relies on a StateLock (or CRDT logic) to ensure the value never regresses.
Invariants
Preconditions
- Initial value defined
Postconditions
- Order preserved
Failure modes
- Counter overflow (finite integer space).
Where this came from
—
Builds on
Used by
- AuditTrail references
- Ballot references
- TimeWarpLog references
Identity
- Ref:
MonotonicCounter#d0d3 - Hash: sema:MonotonicCounter#mh:SHA-256:d0d3ce256be4bc080a29eab7fda36381a4352a280d9a12d59179c60e71cf9bd0
- Library: bootstrap 0.11.0, root a6a3d1ff0f98
- License: Not stated; check the repository