Skip to content

Latest commit

 

History

History
33 lines (29 loc) · 1.48 KB

clock.md

File metadata and controls

33 lines (29 loc) · 1.48 KB

Clock

Lamport Timestamps

  • Each node knows
    • It's events
    • Communication events
  • Local Clock
    • Just a counter
    • Monotonic increase at own event times c_i(a)< c_i(b)
    • Message receipt time greater than spend time. c_j(d) = max(c_i(a)++, c_j(d))
    • Cant distinguish concurrent event

Vector Clock

  • Just an array of Lamport
  • CRDT
  • Causally Related
    • One must be less and others equal or less
  • Concurrent
    • One less, one more, one less / more

Interval Tree Clock

  • Version Vectors or Interval Tree Clocks
  • All unique identifiers coming together modifying
  • We need to track causality.
  • In a nutshell, given two events modifying a given piece of data and originating from different nodes in the system, we want to know if one of those events could have influenced the other one, or in other words if one of those events happened before the other one.

References