Happens-Before Relation
We assume that there is a strict total order on the events that occur at the same node
Event happens-before event (written ) iff:
- and occurred at the same node, and occurred before in that node’s execution order
- event is the sending of some message , and event is the receipt of that same message
- there exists an event such that and
The happens-before relation is a partial order: it is possible that neither nor . In that case, and are concurrent
References
- Distributed Systems Notes. Martin Kleppmann
- Distributed Systems 4.1: Logical time - YouTube
- Distributed Systems 3.3: Causality and happens-before - YouTube
- Distributed Systems 4.1: Logical time - YouTube
- Designing Data-Intensive Applications: The Big Ideas Behind Reliable, Scalable, and Maintainable Systems. Martin Kleppmann