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" co
![Vector clock - Wikipedia](https://cdn-ak-scissors.b.st-hatena.com/image/square/854b4906814f31497c078b6bc83d45fef80c3b33/height=288;version=1;width=512/https%3A%2F%2Fupload.wikimedia.org%2Fwikipedia%2Fcommons%2Fthumb%2F5%2F55%2FVector_Clock.svg%2F1200px-Vector_Clock.svg.png)