Distributed Concurrency: How to actually stop a zombie write?

mrvladp · reddit · 2026-08-18

The post explores a common distributed concurrency failure where a delayed response from a timed-out worker overwrites data after the task was reassigned. The author analyzes the limitations of four mechanisms: locks (risk of deadlock), leases (expiration doesn't stop late writers), version checks (blind spots if data hasn't changed), and fences (verifying ownership grant). The proposed solution is a "generation" mechanism: increment a generation number on every ownership change and verify both generation and version atomically during commit. This approach mirrors concepts discussed by Martin Kleppmann.

Original post →

More from Research

Research channel →