April 2026 • Rich Robertson

Vector Clocks vs Timestamps

Vector clocks encode causality between writes, while timestamps impose an ordering that may lose concurrent updates.

Definition

Vector clocks encode causality between writes, while timestamps impose an ordering that may lose concurrent updates.

Key Concepts

How It Works

Each write carries either a vector version map or a scalar timestamp; reconciliation uses causality checks or max-timestamp selection.

Comparison Table

ApproachProsCons
Vector clocksCausal accuracyHigher metadata/complexity
TimestampsSimple and fastCan drop concurrent intent

Production Implications

Amazon Dynamo used vector clocks to surface sibling versions, while Apache Cassandra typically resolves by timestamp. Teams often add idempotency keys and domain merges above storage to avoid silent data loss.

When to Use / Not Use

Use It When

Avoid It When

Key Takeaways