concept

Hybrid Clocks

Hybrid clocks are a distributed systems technique that combines logical clocks (like Lamport or vector clocks) with physical timestamps to provide a total ordering of events across multiple nodes. They address the limitations of purely logical clocks, which lack real-time information, and physical clocks, which suffer from clock skew and drift. This approach enables causality tracking and consistent ordering in distributed applications, such as databases and messaging systems.

Also known as: Hybrid Logical Clocks, HLC, Hybrid Time, Logical-Physical Clocks, Hybrid Timestamping
🧊Why learn Hybrid Clocks?

Developers should learn hybrid clocks when building distributed systems that require both causality preservation and approximate real-time ordering, such as in distributed databases (e.g., for conflict resolution), event sourcing, or replication protocols. They are particularly useful in scenarios where strict consistency is needed but physical clocks are unreliable, as they provide a more robust alternative to naive timestamp-based ordering.

Compare Hybrid Clocks

Learning Resources

Related Tools

Alternatives to Hybrid Clocks