[{"data":1,"prerenderedAt":15},["ShallowReactive",2],{"tag-list-en-logical-clocks":3},[4],{"title":5,"description":6,"tags":7,"path":12,"date":13,"img":14},"Lamport and Vector Clocks in Go: Ordering Events Without a Shared Clock","Two servers write the same key and your logs say one came 3 ms before the other. Can you trust that? Not without a shared clock. We build Lamport and vector clocks in Go, explain the small amount of math behind them (partial orders, the happened-before relation, component-wise comparison), and test both against 6.7 million event pairs to see exactly what each one can and cannot tell you.",[8,9,10,11],"Distributed-Systems","Go","Logical-Clocks","Algorithms","\u002Fbackend\u002Fdistributed-systems\u002Flamport-vector-clocks","2026-11-14","https:\u002F\u002Fres.cloudinary.com\u002Fdpdwhd6ka\u002Fimage\u002Fupload\u002Fv1691560968\u002FBlog\u002Farticles\u002Falgorithms\u002Fbolohyzwbz34pedr1zpp.png",1794697161002]