Last-Writer-Wins (LWW) is a conflict resolution strategy for concurrent data updates where the operation with the most recent timestamp is retained, discarding all previous conflicting writes. It is a simple, deterministic rule commonly used in eventually consistent databases, Conflict-Free Replicated Data Types (CRDTs), and agentic memory systems to provide a total order for operations without requiring coordination. The strategy relies on synchronized or Lamport clocks to assign a definitive order, making it highly available but prone to data loss if timestamps are skewed or logic is flawed.
