Vector Clock Compare

easy · distributed-systems, crdt, conflict-resolution

Vector Clock Compare

Compare two vector clocks.

Return one of:

"equal"
"before"
"after"
"concurrent"

a is before b if every component of a is less than or equal to b and at least one component is smaller.

Missing components are treated as zero.

Function signature

func CompareVectorClock(a, b []int) string
Run tests to see results
No issues detected
    Join Discord