TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Locklock.io – Lock-as-a-service, REST API for easy distributed locking

5 pointsby asdfasdf45over 5 years ago

2 comments

ryanworlover 5 years ago
Left this comment in your live chat, this doesn&#x27;t appear to have any provision for supporting fencing. This means it will not work under many common failure scenarios.<p><a href="https:&#x2F;&#x2F;martin.kleppmann.com&#x2F;2016&#x2F;02&#x2F;08&#x2F;how-to-do-distributed-locking.html" rel="nofollow">https:&#x2F;&#x2F;martin.kleppmann.com&#x2F;2016&#x2F;02&#x2F;08&#x2F;how-to-do-distribute...</a>
评论 #21703761 未加载
asdfasdf45over 5 years ago
We built Locklock mainly because simple patterns of distributed locking kept coming up in our system designs.<p>The common use case is ensuring multiple components of a distributed system take turns accessing a shared resource.<p>A special case of that is guaranteeing a particular operation takes place at most once. For example, some AWS services guarantee at-least-once delivery, but sometimes consequences of these events need to execute exactly once. To accomplish this, simply acquire a lock for the identifier representing the originating event and don&#x27;t release it.<p>Our secondary motivation was to unify locking logic across components of a distributed system, which may be written using different programming languages or deployed accross multiple cloud providers. By using Locklock, they only need to know how to communicate with a simple REST API.<p>Would really appreciate feedback from the community!