<分区>
Disclaimer: I already asked this question, but without the deployment requirement. I got an answer that got 3 upvotes, and when I edited the question to include the deployment requirement the answer then became irrelevant. The reason I'm resubmitting is because SO considers the original question 'answered', even though I got no meaningful upvoted answer. I opened a uservoice submission about this problem. The reason I reposted is so StackOverflow consider the original question answered, so it doesn't show up on the 'unanswered questions' tab.
您会使用哪种分布式锁服务?
要求是:
- 可以从不同进程/机器看到的互斥(锁)
- 锁定...释放语义
- 一定超时后自动释放锁 - 如果锁持有者死亡,它将在 X 秒后自动释放
- Java 实现
- 轻松部署 - 除了 Netapp、MySql 或 GigaSpaces 之外,不得需要复杂的部署。必须与这些产品配合良好(尤其是 GigaSpaces - 这就是 TerraCotta 被排除在外的原因)。
- 很高兴拥有:.Net 实现
- 如果是免费的:死锁检测/缓解
我对“可以通过数据库完成”或“可以通过 JavaSpaces 完成”这样的回答不感兴趣 - 我知道。相关答案应仅包含现成的、开箱即用的、经过验证的实现。