Re:Show HN: Lockable – sync locks for distributed systems
by JoshTriplett on Saturday June 18, 2022 @04:38AM
(#31788216)
Have you considered a version that holds a lock as long as it maintains an HTTP connection (with periodic data sent to keep the connection alive), and when the connection closes, the lock is released? That would help prevent the lock from staying held.
[ Parent
| on HN ]
Re:Show HN: Lockable – sync locks for distributed systems
by keyless_ on Saturday June 18, 2022 @08:11AM
(#31789147)
Conceptually, that's how it works, however, instead of keeping an HTTP connection open, lockable expects to receive periodic heartbeats /hearbeat to keep the lock acquired. The TTL is variable, and can be set depending on the use case.