Unmesh Joshi Patterns Of Distributed Systems May 2026
Consider To avoid race conditions in a multi-threaded server, you don't need complex locks. You just process requests on a single thread. Kafka does this. Redis does this. It’s a pattern.
But Joshi’s masterpiece is his treatment of and "Lease." unmesh joshi patterns of distributed systems
You are watching a recover via a Leader and Followers pattern, using a High-Water Mark to truncate a Write-Ahead Log , protected by a Lease and a Generation Clock . Consider To avoid race conditions in a multi-threaded
In his writing, a "Heartbeat" isn't just a ping. It is a pattern with specific failure modes. What happens if the heartbeat is delayed by a garbage collection pause? The system might falsely declare a leader dead (a "false positive"). To fix this, you need the "Lease" pattern—a time-bound guarantee that prevents two leaders from existing simultaneously (the dreaded "split brain"). Redis does this
Enter .
His core thesis is simple but profound: