Vector Clocks implemented in Scala A vector clock is an algorithm for generating a partial ordering of events in a distributed system and detecting causality violations.