distributed-lock

Distributed locking in .NET

萝らか妹 提交于 2020-06-10 04:42:27
问题 I'm looking for recommendations for a locking mechanism that will work across multiple machines. In my case I basically just want to be able to start a service on 2 machines and have one block until the other finishes as a simple way to insure redundancy in case a service machine goes down. Sort of along the same lines as Distributed Lock Service but specifically looking for projects that people have successfully integrated with .NET. 回答1: We use SqlServer's application lock functionality for

In Hazelcast, is it possible to use clustered locks that do _not_ care about the local thread that performs the lock/unlock operations?

倾然丶 夕夏残阳落幕 提交于 2019-12-10 09:31:55
问题 Hazelcast locks (such as http://www.hazelcast.com/docs/1.9.4/manual/multi_html/ch02s07.html) as I understand it behave the same way as the Java concurrency primitives but across the cluster. The makes it possible to use to synchronize between thread in the local process as well as over the cluster. However, is there any way I can opt out of this behaviour? In my current project, I need a way of coordinating unique ownership of a resource across the cluster but want to aquire and release this

In Hazelcast, is it possible to use clustered locks that do _not_ care about the local thread that performs the lock/unlock operations?

吃可爱长大的小学妹 提交于 2019-12-05 14:19:50
Hazelcast locks (such as http://www.hazelcast.com/docs/1.9.4/manual/multi_html/ch02s07.html ) as I understand it behave the same way as the Java concurrency primitives but across the cluster. The makes it possible to use to synchronize between thread in the local process as well as over the cluster. However, is there any way I can opt out of this behaviour? In my current project, I need a way of coordinating unique ownership of a resource across the cluster but want to aquire and release this ownership from multiple points in my application - can I do this in some way that does not involve

Distributed Lock Service [closed]

蹲街弑〆低调 提交于 2019-11-26 19:28:43
Which distributed lock service would you use? Requirements are: A mutual exclusion (lock) that can be seen from different processes/machines lock...release semantics Automatic lock release after a certain timeout - if lock holder dies, it will automatically be freed after X seconds Java implementation Nice to have: .Net implementation If it's free: Deadlock detection / mitigation Easy deployment, see note below. I'm not interested in answers like "it can be done over a database", or "it can be done over JavaSpaces" - I know. I'm interested in a ready, out-of-the-box, proven implementation.

Distributed Lock Service [closed]

自作多情 提交于 2019-11-26 08:58:10
问题 Which distributed lock service would you use? Requirements are: A mutual exclusion (lock) that can be seen from different processes/machines lock...release semantics Automatic lock release after a certain timeout - if lock holder dies, it will automatically be freed after X seconds Java implementation Nice to have: .Net implementation If it\'s free: Deadlock detection / mitigation Easy deployment, see note below. I\'m not interested in answers like \"it can be done over a database\", or \"it