Vector clock: Difference between revisions
m →Intro: Fixed typo in image caption |
m →History: fixed grammar |
||
(67 intermediate revisions by 42 users not shown) | |||
Line 1: | Line 1: | ||
''' |
{{Short description|Algorithm for partial ordering of events and detecting causality in distributed systems}} |
||
{{distinguish|Version vector}} |
|||
A '''vector clock''' is a [[data structure]] used for determining the [[partial ordering]] of events in a [[distributed system]] and detecting [[causality]] violations. Just as in [[Lamport timestamp]]s, inter-process messages contain the state of the sending process's [[logical clock]]. A vector clock of a system of ''N'' processes is an [[array data structure|array]]/vector of ''N'' logical clocks, one clock per process; a local "largest possible values" copy of the global clock-array is kept in each process. |
|||
⚫ | |||
Denote <math>VC_i</math> as the vector clock maintained by process <math>i</math>, the clock updates proceed as follows:<ref>{{Cite web|title=Distributed Systems 3rd edition (2017)|url=https://www.distributed-systems.net/index.php/books/ds3/|access-date=2021-03-21|website=DISTRIBUTED-SYSTEMS.NET|language=en-US}}</ref> |
|||
⚫ | |||
* Initially all clocks are zero. |
* Initially all clocks are zero. |
||
* Each time a process experiences an internal event, it increments its own [[logical clock]] in the vector by one. |
* Each time a process experiences an internal event, it increments its own [[logical clock]] in the vector by one. For instance, upon an event at process <math>i</math>, it updates <math>VC_{i}[i] \leftarrow VC_{i}[i] + 1</math>. |
||
* Each time a process |
* Each time a process sends a message, it increments its own logical clock in the vector by one (as in the bullet above, but not twice for the same event) then it pairs the message with a copy of its own vector and finally sends the pair. |
||
* Each time a process receives a message, it increments its own logical clock in the vector by one and updates each element in its vector by taking the maximum of the value in its own vector clock and the value in the vector in the received |
* Each time a process receives a message-vector clock pair, it increments its own logical clock in the vector by one and updates each element in its vector by taking the maximum of the value in its own vector clock and the value in the vector in the received pair (for every element). For example, if process <math>P_i</math> receives a message <math>(m, VC_{j})</math> from <math>P_j</math>, it first increments its own logical clock in the vector by one <math>VC_{i}[i]\leftarrow VC_{i}[i]+1</math> and then updates its entire vector by setting <math>VC_{i}[k]\leftarrow \max(VC_{i}[k], VC_{j}[k]), \forall k</math>. |
||
==History== |
|||
Lamport originated the idea of logical [[Lamport clock]]s in 1978.<ref name="Lamport 1978">{{Cite journal | last1 = Lamport | first1 = L. |authorlink1=Leslie Lamport| title = Time, clocks, and the ordering of events in a distributed system | doi = 10.1145/359545.359563 | journal = [[Communications of the ACM ]]| volume = 21 | issue = 7 | pages = 558–565| year = 1978 | s2cid = 215822405 | url=http://research.microsoft.com/users/lamport/pubs/time-clocks.pdf}}</ref> However, the logical clocks in that paper were scalars, not vectors. The generalization to vector time was developed several times, apparently independently, by different authors in the early 1980s.<ref name=Schwarz>{{cite journal |last1=Schwarz |first1=Reinhard |last2=Mattern |first2=Friedemann |title=Detecting causal relationships in distributed computations: In search of the holy grail |journal=Distributed Computing |date=March 1994 |volume=7 |issue=3 |pages=149–174 |doi=10.1007/BF02277859|s2cid=3065996 |url=https://nbn-resolving.org/urn:nbn:de:hbz:386-kluedo-4006 }}</ref> At least 6 papers contain the concept. |
|||
The '''vector clocks''' algorithm was independently developed by Colin Fidge and [[Friedemann Mattern]] in 1988.<ref>{{cite conference |
|||
<ref>{{cite web |last1=Kuper |first1=Lindsey |title=Who invented vector clocks? |url=https://decomposition.al/blog/2023/04/08/who-invented-vector-clocks/ |website=decomposition ∘ al |language=en |date=8 April 2023}} The papers are (in chronological order): |
|||
| title = Timestamps in Message-Passing Systems That Preserve the Partial Ordering |
|||
* {{cite book |last1=Fischer |first1=Michael J. |last2=Michael |first2=Alan |title=Proceedings of the 1st ACM SIGACT-SIGMOD symposium on Principles of database systems - PODS '82 |chapter=Sacrificing serializability to attain high availability of data in an unreliable network |date=1982 |pages=70 |doi=10.1145/588111.588124|isbn=0897910702 |s2cid=8774876 }} |
|||
| author = Colin J. Fidge |
|||
* {{cite journal |last1=Parker |first1=D.S. |last2=Popek |first2=G.J. |last3=Rudisin |first3=G. |last4=Stoughton |first4=A. |last5=Walker |first5=B.J. |last6=Walton |first6=E. |last7=Chow |first7=J.M. |last8=Edwards |first8=D. |last9=Kiser |first9=S. |last10=Kline |first10=C. |title=Detection of Mutual Inconsistency in Distributed Systems |journal=IEEE Transactions on Software Engineering |date=May 1983 |volume=SE-9 |issue=3 |pages=240–247 |doi=10.1109/TSE.1983.236733|s2cid=2483222 }} |
|||
| booktitle = Proc. of the 11th Australian Computer Science Conference (ACSC'88) |
|||
* {{cite book |last1=Wuu |first1=Gene T.J. |last2=Bernstein |first2=Arthur J. |title=Proceedings of the third annual ACM symposium on Principles of distributed computing - PODC '84 |chapter=Efficient solutions to the replicated log and dictionary problems |date=1984 |pages=233–242 |doi=10.1145/800222.806750|isbn=0897911431 |s2cid=2384672 }} |
|||
| pages = 56–66 |
|||
* {{cite journal |last1=Strom |first1=Rob |last2=Yemini |first2=Shaula |title=Optimistic recovery in distributed systems |journal=ACM Transactions on Computer Systems |date=August 1985 |volume=3 |issue=3 |pages=204–226 |doi=10.1145/3959.3962|s2cid=1941122 |doi-access=free }} |
|||
| editor = K. Raymond (Ed.) |
|||
* {{cite tech report |last1=Schmuck |first1=Frank B. |title=Software clocks and the order of events in a distributed system |date=November 1985 |type=unpublished }} |
|||
|date=February 1988 |
|||
* {{cite book |last1=Liskov |first1=Barbara |last2=Ladin |first2=Rivka |title=Proceedings of the fifth annual ACM symposium on Principles of distributed computing - PODC '86 |chapter=Highly available distributed services and fault-tolerant distributed garbage collection |date=1986 |pages=29–39 |doi=10.1145/10590.10593|isbn=0897911989 |s2cid=16148617 }} |
|||
| url = http://zoo.cs.yale.edu/classes/cs426/2012/lab/bib/fidge88timestamps.pdf |
|||
* {{cite journal |last1=Raynal |first1=Michel |title=A distributed algorithm to prevent mutual drift between n logical clocks |journal=Information Processing Letters |date=February 1987 |volume=24 |issue=3 |pages=199–202 |doi=10.1016/0020-0190(87)90186-4}} |
|||
| accessdate = 2009-02-13 |
|||
</ref> The papers canonically cited in reference to vector clocks are Colin Fidge’s and [[Friedemann Mattern]]’s 1988 works, |
|||
}}</ref><ref>{{Citation |
|||
<ref>{{cite conference|first=Colin J.|last=Fidge|date=February 1988|title=Timestamps in message-passing systems that preserve the partial ordering|book-title=Proceedings of the 11th Australian Computer Science Conference (ACSC'88)|volume=10|issue=1 | editor = K. Raymond|pages=56–66 | url = http://zoo.cs.yale.edu/classes/cs426/2012/lab/bib/fidge88timestamps.pdf |
|||
| title=Proc. Workshop on Parallel and Distributed Algorithms |
|||
| access-date = 2009-02-13}}</ref><ref>{{cite conference|title=Virtual Time and Global States of Distributed systems|book-title=Proc. Workshop on Parallel and Distributed Algorithms|first=Friedemann|last=Mattern | editor-last=Cosnard | editor-first=M. |
|||
| last1=Mattern | first1=F. |
|||
| contribution=Virtual Time and Global States of Distributed Systems |
|||
| editor-last=Cosnard | editor-first=M. |
|||
| place=Chateau de Bonas, France |date=October 1988 |publisher=Elsevier |
| place=Chateau de Bonas, France |date=October 1988 |publisher=Elsevier |
||
| pages=215–226}}</ref> as they (independently) established the name "vector clock" and the mathematical properties of vector clocks.<ref name=Schwarz/> |
|||
| pages=215–226 |
|||
}}</ref> |
|||
==Partial ordering property== |
==Partial ordering property== |
||
Line 28: | Line 31: | ||
Vector clocks allow for the partial causal ordering of events. Defining the following: |
Vector clocks allow for the partial causal ordering of events. Defining the following: |
||
* <math>VC(x)</math> denotes the vector clock of event <math>x</math>, and <math>VC(x)_z</math> denotes the component of that clock for process <math>z</math>. |
* <math>VC(x)</math> denotes the vector clock of event <math>x</math>, and <math>VC(x)_z</math> denotes the component of that clock for process <math>z</math>. |
||
* <math>VC(x) < VC(y) \iff \forall z [VC(x)_z \le VC(y)_z] \ |
* <math>VC(x) < VC(y) \iff \forall z [VC(x)_z \le VC(y)_z] \land \exists z' [ VC(x)_{z'} < VC(y)_{z'} ]</math> |
||
** In English: <math>VC(x)</math> is less than <math>VC(y)</math>, if and only if <math>VC(x)_z</math> is less than or equal to <math>VC(y)_z</math> for all process indices <math>z</math>, and at least one of those relationships is strictly smaller (that is, <math>VC(x)_{z'} < VC(y)_{z'}</math>). |
** In English: <math>VC(x)</math> is less than <math>VC(y)</math>, if and only if <math>VC(x)_z</math> is less than or equal to <math>VC(y)_z</math> for all process indices <math>z</math>, and at least one of those relationships is strictly smaller (that is, <math>VC(x)_{z'} < VC(y)_{z'}</math>). |
||
* <math>x \to y\;</math> denotes that event <math>x</math> happened before event <math>y</math>. It is defined as: if <math>x \to y\;</math>, then <math>VC(x) < VC(y)</math> |
* <math>x \to y\;</math> denotes that event <math>x</math> happened before event <math>y</math>. It is defined as: if <math>x \to y\;</math>, then <math>VC(x) < VC(y)</math> |
||
Line 34: | Line 37: | ||
Properties: |
Properties: |
||
* |
* [[antisymmetric relation|Antisymmetry]]: if <math>VC(a) < VC(b)</math>, then ¬<math>(VC(b) < VC(a))</math> |
||
* [[ |
* [[transitive relation|Transitivity]]: if <math>VC(a) < VC(b)</math> and <math>VC(b) < VC(c)</math>, then <math>VC(a) < VC(c)</math>; or, if <math>a \to b\;</math> and <math>b \to c\;</math>, then <math>a \to c\;</math> |
||
* [[transitive relation|Transitivity]]: if <math>VC(a) < VC(b)</math> and <math>VC(b) < VC(c)</math>, then <math>VC(a) < VC(c)</math> or if <math>a \to b\;</math> and <math>b \to c\;</math>, then <math>a \to c\;</math> |
|||
Relation with other orders: |
Relation with other orders: |
||
Line 44: | Line 46: | ||
==Other mechanisms== |
==Other mechanisms== |
||
{{Incomplete list|date=June 2023}} |
|||
* |
* In 1999, Torres-Rojas and Ahamad developed '''Plausible Clocks''',<ref>{{Citation |author1=Francisco Torres-Rojas |author2=Mustaque Ahamad |
||
|title=Plausible clocks: constant size logical clocks for distributed systems |journal=Distributed Computing |volume=12 |issue=4 |year=1999 |pages=179–195 |doi=10.1007/s004460050065 |s2cid=2936350 |
|||
⚫ | |||
* In 2005, Agarwal and Garg created '''Chain Clocks''',<ref>{{cite book |last1=Agarwal |first1=Anurag |last2=Garg |first2=Vijay K. |title=Proceedings of the twenty-fourth annual ACM symposium on Principles of distributed computing |chapter=Efficient dependency tracking for relevant events in shared-memory systems |date=17 July 2005 |pages=19–28 |doi=10.1145/1073814.1073818 |chapter-url=http://users.ece.utexas.edu/~garg/dist/agarwal-garg-DC.pdf |access-date=21 April 2021 |publisher=Association for Computing Machinery|isbn=1-58113-994-2 |s2cid=11779779 }}</ref> a system that tracks dependencies using vectors with size smaller than the number of processes and that adapts automatically to systems with dynamic number of processes. |
|||
* In 2008, Almeida ''et al.'' introduced '''Interval Tree Clocks'''.<ref>{{Citation | |
|||
last1=Almeida | first1=Paulo | last2=Baquero | first2=Carlos | last3=Fonte | first3=Victor | |
last1=Almeida | first1=Paulo | last2=Baquero | first2=Carlos | last3=Fonte | first3=Victor | |
||
contribution=Interval Tree Clocks: A Logical Clock for Dynamic Systems | |
contribution=Interval Tree Clocks: A Logical Clock for Dynamic Systems | |
||
Line 54: | Line 62: | ||
url=http://gsd.di.uminho.pt/members/cbm/ps/itc2008.pdf | |
url=http://gsd.di.uminho.pt/members/cbm/ps/itc2008.pdf | |
||
pages=259–274 | |
pages=259–274 | |
||
series=Lecture Notes in Computer Science | |
series=Lecture Notes in Computer Science | bibcode=2008LNCS.5401.....B | |
||
editor1-last=Baker | |
editor1-last=Baker | |
||
editor1-first=Theodore P. | |
editor1-first=Theodore P. | |
||
Line 61: | Line 69: | ||
editor3-last=Tixeuil | |
editor3-last=Tixeuil | |
||
editor3-first=Sébastien | |
editor3-first=Sébastien | |
||
isbn=978-3-540-92220-9 }}</ref><ref>{{Citation | last1=Almeida | first1=Paulo | last2=Baquero | first2=Carlos | last3=Fonte | first3=Victor | title=Interval Tree Clocks: A Logical Clock for Dynamic Systems | volume=5401 | pages=259 | contribution=Interval Tree Clocks: A Logical Clock for Dynamic Systems | year=2008 | doi=10.1007/978-3-540-92221-6_18 | url=https://www.researchgate.net/publication/235246938 | series=Lecture Notes in Computer Science | isbn=978-3-540-92220-9 | hdl=1822/37748 | hdl-access=free }}</ref><ref>{{Citation | last1=Zhang | first1=Yi | title=Background Preliminaries: Interval Tree Clock Results | contribution=Background Preliminaries: Interval Tree Clock Results | year=2014 | url=https://cs.uwaterloo.ca/~mkarsten/cs755-F14/presentations/ITC.pdf }}</ref> This mechanism generalizes Vector Clocks and allows operation in dynamic environments when the identities and number of processes in the computation is not known in advance. |
|||
isbn=978-3-540-92220-9 }}</ref> This mechanism generalizes Vector Clocks and allows operation in dynamic environments when the identities and number of processes in the computation is not known in advance. You can find an implementation of ITC named itc4j [https://github.com/sinabz/itc4j here]. |
|||
* In 2019, Lum Ramabaja proposed '''Bloom Clocks''', a probabilistic data structure based on [[Bloom filters]].<ref>{{cite journal |last1=Pozzetti |first1=Tommaso |last2=Kshemkalyani |first2=Ajay D. |title=Resettable Encoded Vector Clock for Causality Analysis With an Application to Dynamic Race Detection |journal=IEEE Transactions on Parallel and Distributed Systems |date=1 April 2021 |volume=32 |issue=4 |pages=772–785 |doi=10.1109/TPDS.2020.3032293|s2cid=220362525 |doi-access=free }}</ref><ref>{{Citation |author1=Lum Ramabaja |title=The Bloom Clock |year=2019 |arxiv=1905.13064 |bibcode=2019arXiv190513064R }}</ref><ref>{{cite book |last1=Kulkarni |first1=Sandeep S |last2=Appleton |first2=Gabe |last3=Nguyen |first3=Duong |title=Proceedings of the 23rd International Conference on Distributed Computing and Networking |chapter=Achieving Causality with Physical Clocks |date=4 January 2022 |pages=97–106 |doi=10.1145/3491003.3491009|arxiv=2104.15099 |isbn=9781450395601 |s2cid=233476293 }}</ref> Compared to a vector clock, the space used per node is fixed and does not depend on the number of nodes in a system. Comparing two clocks either produces a true negative (the clocks are not comparable), or else a suggestion that one clock precedes the other, with the possibility of a false positive where the two clocks are unrelated. The false positive rate decreases as more storage is allowed. |
|||
* Torres-Rojas and Ahamad, developed in 1999 Plausible Clocks,<ref>{{Citation | |
|||
last1=Torres-Rojas | first1=Francisco | last2=Ahamad | first2=Mustaque | |
|||
title=Plausible clocks: constant size logical clocks for distributed systems | |
|||
journal=Distributed Computing | |
|||
volume=12 | issue=4 | |
|||
publisher=Springer Verlag | |
|||
year=1999 | |
|||
pages=179–195 | |
|||
⚫ | |||
==See also== |
==See also== |
||
Line 82: | Line 82: | ||
== External links == |
== External links == |
||
* [http://queue.acm.org/detail.cfm?id=2917756 Why Logical Clocks are Easy (Compares Causal Histories, Vector Clocks and Version Vectors)] |
|||
* [http://basho.com/why-vector-clocks-are-easy/ Explanation of Vector clocks] |
* [http://basho.com/why-vector-clocks-are-easy/ Explanation of Vector clocks] |
||
* [ |
* [https://github.com/cliffmoon/dynomite/blob/master/elibs/vector_clock.erl Timestamp-based vector clock implementation in Erlang] |
||
* [https://github.com/jeremytregunna/JVectorClock Vector clock implementation in Objective-C] |
* [https://github.com/jeremytregunna/JVectorClock Vector clock implementation in Objective-C] |
||
* [https://github.com/basho/riak_core/blob/master/src/vclock.erl Vector clock implementation in Erlang] |
* [https://github.com/basho/riak_core/blob/master/src/vclock.erl Vector clock implementation in Erlang] |
||
* [http://basho.com/why-vector-clocks-are-hard/ Why Vector Clocks are Hard] |
* [http://basho.com/why-vector-clocks-are-hard/ Why Vector Clocks are Hard] |
||
* [http://docs.basho.com/riak/latest/theory/concepts/context/#Vector-Clocks Riak Vector Clocks] |
|||
* [http://www.datastax.com/dev/blog/why-cassandra-doesnt-need-vector-clocks Why Cassandra doesn’t need vector clocks] |
* [http://www.datastax.com/dev/blog/why-cassandra-doesnt-need-vector-clocks Why Cassandra doesn’t need vector clocks] |
||
<!--Interwikies--> |
|||
{{DEFAULTSORT:Vector Clock}} |
{{DEFAULTSORT:Vector Clock}} |
||
⚫ | |||
<!--Categories--> |
|||
⚫ |
Latest revision as of 09:01, 28 April 2024
A vector clock is a data structure used for determining the partial ordering of events in a distributed system and detecting causality violations. Just as in Lamport timestamps, inter-process messages contain the state of the sending process's logical clock. A vector clock of a system of N processes is an array/vector of N logical clocks, one clock per process; a local "largest possible values" copy of the global clock-array is kept in each process.
Denote as the vector clock maintained by process , the clock updates proceed as follows:[1]
- Initially all clocks are zero.
- Each time a process experiences an internal event, it increments its own logical clock in the vector by one. For instance, upon an event at process , it updates .
- Each time a process sends a message, it increments its own logical clock in the vector by one (as in the bullet above, but not twice for the same event) then it pairs the message with a copy of its own vector and finally sends the pair.
- Each time a process receives a message-vector clock pair, it increments its own logical clock in the vector by one and updates each element in its vector by taking the maximum of the value in its own vector clock and the value in the vector in the received pair (for every element). For example, if process receives a message from , it first increments its own logical clock in the vector by one and then updates its entire vector by setting .
History
[edit]Lamport originated the idea of logical Lamport clocks in 1978.[2] However, the logical clocks in that paper were scalars, not vectors. The generalization to vector time was developed several times, apparently independently, by different authors in the early 1980s.[3] At least 6 papers contain the concept. [4] The papers canonically cited in reference to vector clocks are Colin Fidge’s and Friedemann Mattern’s 1988 works, [5][6] as they (independently) established the name "vector clock" and the mathematical properties of vector clocks.[3]
Partial ordering property
[edit]Vector clocks allow for the partial causal ordering of events. Defining the following:
- denotes the vector clock of event , and denotes the component of that clock for process .
-
- In English: is less than , if and only if is less than or equal to for all process indices , and at least one of those relationships is strictly smaller (that is, ).
- denotes that event happened before event . It is defined as: if , then
Properties:
- Antisymmetry: if , then ¬
- Transitivity: if and , then ; or, if and , then
Relation with other orders:
- Let be the real time when event occurs. If , then
- Let be the Lamport timestamp of event . If , then
Other mechanisms
[edit]- In 1999, Torres-Rojas and Ahamad developed Plausible Clocks,[7] a mechanism that takes less space than vector clocks but that, in some cases, will totally order events that are causally concurrent.
- In 2005, Agarwal and Garg created Chain Clocks,[8] a system that tracks dependencies using vectors with size smaller than the number of processes and that adapts automatically to systems with dynamic number of processes.
- In 2008, Almeida et al. introduced Interval Tree Clocks.[9][10][11] This mechanism generalizes Vector Clocks and allows operation in dynamic environments when the identities and number of processes in the computation is not known in advance.
- In 2019, Lum Ramabaja proposed Bloom Clocks, a probabilistic data structure based on Bloom filters.[12][13][14] Compared to a vector clock, the space used per node is fixed and does not depend on the number of nodes in a system. Comparing two clocks either produces a true negative (the clocks are not comparable), or else a suggestion that one clock precedes the other, with the possibility of a false positive where the two clocks are unrelated. The false positive rate decreases as more storage is allowed.
See also
[edit]References
[edit]- ^ "Distributed Systems 3rd edition (2017)". DISTRIBUTED-SYSTEMS.NET. Retrieved 2021-03-21.
- ^ Lamport, L. (1978). "Time, clocks, and the ordering of events in a distributed system" (PDF). Communications of the ACM . 21 (7): 558–565. doi:10.1145/359545.359563. S2CID 215822405.
- ^ a b Schwarz, Reinhard; Mattern, Friedemann (March 1994). "Detecting causal relationships in distributed computations: In search of the holy grail". Distributed Computing. 7 (3): 149–174. doi:10.1007/BF02277859. S2CID 3065996.
- ^ Kuper, Lindsey (8 April 2023). "Who invented vector clocks?". decomposition ∘ al. The papers are (in chronological order):
- Fischer, Michael J.; Michael, Alan (1982). "Sacrificing serializability to attain high availability of data in an unreliable network". Proceedings of the 1st ACM SIGACT-SIGMOD symposium on Principles of database systems - PODS '82. p. 70. doi:10.1145/588111.588124. ISBN 0897910702. S2CID 8774876.
- Parker, D.S.; Popek, G.J.; Rudisin, G.; Stoughton, A.; Walker, B.J.; Walton, E.; Chow, J.M.; Edwards, D.; Kiser, S.; Kline, C. (May 1983). "Detection of Mutual Inconsistency in Distributed Systems". IEEE Transactions on Software Engineering. SE-9 (3): 240–247. doi:10.1109/TSE.1983.236733. S2CID 2483222.
- Wuu, Gene T.J.; Bernstein, Arthur J. (1984). "Efficient solutions to the replicated log and dictionary problems". Proceedings of the third annual ACM symposium on Principles of distributed computing - PODC '84. pp. 233–242. doi:10.1145/800222.806750. ISBN 0897911431. S2CID 2384672.
- Strom, Rob; Yemini, Shaula (August 1985). "Optimistic recovery in distributed systems". ACM Transactions on Computer Systems. 3 (3): 204–226. doi:10.1145/3959.3962. S2CID 1941122.
- Schmuck, Frank B. (November 1985). Software clocks and the order of events in a distributed system (unpublished).
- Liskov, Barbara; Ladin, Rivka (1986). "Highly available distributed services and fault-tolerant distributed garbage collection". Proceedings of the fifth annual ACM symposium on Principles of distributed computing - PODC '86. pp. 29–39. doi:10.1145/10590.10593. ISBN 0897911989. S2CID 16148617.
- Raynal, Michel (February 1987). "A distributed algorithm to prevent mutual drift between n logical clocks". Information Processing Letters. 24 (3): 199–202. doi:10.1016/0020-0190(87)90186-4.
- ^ Fidge, Colin J. (February 1988). "Timestamps in message-passing systems that preserve the partial ordering" (PDF). In K. Raymond (ed.). Proceedings of the 11th Australian Computer Science Conference (ACSC'88). Vol. 10. pp. 56–66. Retrieved 2009-02-13.
- ^ Mattern, Friedemann (October 1988). "Virtual Time and Global States of Distributed systems". In Cosnard, M. (ed.). Proc. Workshop on Parallel and Distributed Algorithms. Chateau de Bonas, France: Elsevier. pp. 215–226.
- ^ Francisco Torres-Rojas; Mustaque Ahamad (1999), "Plausible clocks: constant size logical clocks for distributed systems", Distributed Computing, 12 (4): 179–195, doi:10.1007/s004460050065, S2CID 2936350
- ^ Agarwal, Anurag; Garg, Vijay K. (17 July 2005). "Efficient dependency tracking for relevant events in shared-memory systems" (PDF). Proceedings of the twenty-fourth annual ACM symposium on Principles of distributed computing. Association for Computing Machinery. pp. 19–28. doi:10.1145/1073814.1073818. ISBN 1-58113-994-2. S2CID 11779779. Retrieved 21 April 2021.
- ^ Almeida, Paulo; Baquero, Carlos; Fonte, Victor (2008), "Interval Tree Clocks: A Logical Clock for Dynamic Systems", in Baker, Theodore P.; Bui, Alain; Tixeuil, Sébastien (eds.), Principles of Distributed Systems (PDF), Lecture Notes in Computer Science, vol. 5401, Springer-Verlag, Lecture Notes in Computer Science, pp. 259–274, Bibcode:2008LNCS.5401.....B, doi:10.1007/978-3-540-92221-6, ISBN 978-3-540-92220-9
- ^ Almeida, Paulo; Baquero, Carlos; Fonte, Victor (2008), "Interval Tree Clocks: A Logical Clock for Dynamic Systems", Interval Tree Clocks: A Logical Clock for Dynamic Systems, Lecture Notes in Computer Science, vol. 5401, p. 259, doi:10.1007/978-3-540-92221-6_18, hdl:1822/37748, ISBN 978-3-540-92220-9
- ^ Zhang, Yi (2014), "Background Preliminaries: Interval Tree Clock Results", Background Preliminaries: Interval Tree Clock Results (PDF)
- ^ Pozzetti, Tommaso; Kshemkalyani, Ajay D. (1 April 2021). "Resettable Encoded Vector Clock for Causality Analysis With an Application to Dynamic Race Detection". IEEE Transactions on Parallel and Distributed Systems. 32 (4): 772–785. doi:10.1109/TPDS.2020.3032293. S2CID 220362525.
- ^ Lum Ramabaja (2019), The Bloom Clock, arXiv:1905.13064, Bibcode:2019arXiv190513064R
- ^ Kulkarni, Sandeep S; Appleton, Gabe; Nguyen, Duong (4 January 2022). "Achieving Causality with Physical Clocks". Proceedings of the 23rd International Conference on Distributed Computing and Networking. pp. 97–106. arXiv:2104.15099. doi:10.1145/3491003.3491009. ISBN 9781450395601. S2CID 233476293.
External links
[edit]- Why Logical Clocks are Easy (Compares Causal Histories, Vector Clocks and Version Vectors)
- Explanation of Vector clocks
- Timestamp-based vector clock implementation in Erlang
- Vector clock implementation in Objective-C
- Vector clock implementation in Erlang
- Why Vector Clocks are Hard
- Why Cassandra doesn’t need vector clocks