News for hackers. Stuff that matters.
Re:Distributed Locks with Redis by imor80 on Thursday August 22, 2024 @01:54AM (#41317242)
A lot of what you say is explained in detail in Martin Kleppmann's article[0]. As you said, there's no guarantee about when the lock will expire. The proper solution for this is a fencing token. The idea is similar to how people have used optimistic locking when updating data in a db to avoid two users overwriting other's work.

[0]: https://martin.kleppmann.com/2016/02/08/how-to-do-distribute...

There are no comments on this comment yet.