hlc: a hybrid physical/logical clock package for Go

52 views
Skip to first unread message

Jason E. Aten

unread,
Jan 24, 2026, 1:22:07 PM (24 hours ago) Jan 24
to golang-nuts
I have open sourced my hybrid physical/logical clock package, here.


HLC are useful for solving various problems in distributed systems.

The concept of an HLC was invented in this 2014 paper, to combine and preserve the convenient features of both physical and logical clocks:

"Logical Physical Clocks and Consistent Snapshots in Globally Distributed Databases" by Sandeep Kulkarni, Murat Demirbas, Deepak Madeppa, Bharadwaj Avva, and Marcelo Leone.

https://cse.buffalo.edu/tech-reports/2014-04.pdf

See for instance their use in CockroachDB and MongoDB as alternatives to Spanner's TrueTime approach when atomic clocks are unavailable.

https://cse.buffalo.edu/~demirbas/publications/augmentedTime.pdf

https://github.com/AugmentedTimeProject/AugmentedTimeProject

https://muratbuffalo.blogspot.com/2025/01/use-of-time-in-distributed-databases.html

Enjoy,

Jason

Michael Oguidan

unread,
Jan 24, 2026, 3:42:03 PM (21 hours ago) Jan 24
to golang-nuts
Thank you very much
Reply all
Reply to author
Forward
0 new messages