Book

Time, Clocks, and the Ordering of Events in a Distributed System

by Leslie Lamport

Summary

This paper establishes that a logically ordered sequence of events can be constructed across a distributed system, even without a global clock, by defining a consistent ordering relation between events. Lamport introduces the concept of a "happened-before" relation to establish causality and illustrate how this relation can be implemented using logical clocks, specifically "Lamport timestamps." These timestamps allow for the reconstruction of a system's history and ensure that operations are executed in a causally consistent order.

The central argument is that a consistent, albeit partial, ordering of events is achievable through a defined causal relationship and timestamping mechanism. This allows for the reasoning about and management of concurrent processes in distributed environments without relying on synchronized physical clocks. The paper provides a concrete mechanism for achieving this logical ordering, which is foundational for understanding distributed system design and operation.

Key concepts

  • Happened-before relationA relation that defines causal dependency between events in a distributed system.
  • Lamport timestampsLogical clocks that assign a number to each event to ensure causal ordering.
  • Logical clockA counter that increments to represent the passage of time within a distributed system.
  • CausalityThe relationship where one event directly influences another.

From the book

Title: Time, Clocks and the Ordering of Events in a Distributed System by Leslie Lamport

Popular questions readers ask