HN Hall of Fame Weekly email

How to do distributed locking (2016)

martin.kleppmann.com Essays & writing Essays & articles Computer science Candidate
Screenshot of martin.kleppmann.com captured 2026-07-20
Page preview · captured 2026-07-20

Resurfaced independently across 4 calendar years, with breakout response in 3 of them.

submissions
5
submitters
5
observed span
2019–2024
peak thread · 95 comments
244 pts
latest 20+ return · 2024-10-20
244 pts

Submission timeline

2007–2026

One slot for every year since HN launched. Height is that year's peak points; orange marks a 100+ point or 50+ comment breakout. Select a bar to open its strongest thread.

First comments on top threads

HN comment order

At work we use Temporal and ended up using a dedicated workflow and signals to do distributed locking. Working well so far and the implementation is rather simple, relying on Temporal’s facilities to do the distributed parts of the lock.

In Azure, we solve this with leasing blobs and always renewing, and additionally checking ETags when writing.

Please note that I replied to this blog post, when it was published. You may be interested in reading the counter arguments. The author of the original post acknowledged that at least one of his claim was wrong, but I don't know if they modified the post later. Anyway we gained some time perspective, too: Redlock was massively used in the last 10 years, and I have never heard of its properties failing in the practice: that is, no incidents…

antirez·103-point thread·

(how to do distributed locking on top of Redis)

metadat·15-point thread·

The first top-level comment from each of the four biggest threads, in HN’s own order. Excerpts are shortened; open a comment for full context.

Breakout years
3

100+ points or 50+ comments

Total points
483

reference only — not used in Hall rules or ranking

Total comments
129

reference only — not used in Hall rules or ranking

Every submission

DateTitle as submittedByPointsComments
2019-06-19How to Do Distributed Locking (2016)First breakoutappwiz12013
2022-07-16How to do distributed locking (2016)mooreds153
2022-11-10How to do distributed locking (2016)paulgb10
2023-05-12How to do distributed locking (2016)thealig10318
2024-10-20How to do distributed locking (2016)Best thread · Latest 20+ point returnyusufaytas24495