如何在 Aerospike 中保存信号量?
How to save semaphore in Aerospike?
我们一直将 Aeropsike 广泛用作键值存储。但是现在我找不到像我们在 Redis 中那样实际保存 Aeropspike 中的锁的方法。
我想,我总是可以将本机应用程序锁保存为 blob,但这意味着我将被限制在我的应用程序中的特定实现。
不相信您可以 "save" 锁定 Aerospike。任何形式的锁定都必须在应用程序级别实现,然后您必须处理锁定客户端放弃锁定。
我建议您阅读 Martin Kleppmann 的 Redlock Discussion. It covers the responses people in the distributed systems community had to Antirez's debating the topic, following Kleppmann's earlier article How to do distributed locking。
构建 DLM is not a trivial problem at all, and Redlock fails as one. If you are up for it, you can consider writing such a thing over the linearizable strong consistency mode Aerospike 企业版 4.0。
与 Redis 及其变体相反,Aerospike EE 4.0 passes Jepsen。
我们一直将 Aeropsike 广泛用作键值存储。但是现在我找不到像我们在 Redis 中那样实际保存 Aeropspike 中的锁的方法。
我想,我总是可以将本机应用程序锁保存为 blob,但这意味着我将被限制在我的应用程序中的特定实现。
不相信您可以 "save" 锁定 Aerospike。任何形式的锁定都必须在应用程序级别实现,然后您必须处理锁定客户端放弃锁定。
我建议您阅读 Martin Kleppmann 的 Redlock Discussion. It covers the responses people in the distributed systems community had to Antirez's debating the topic, following Kleppmann's earlier article How to do distributed locking。
构建 DLM is not a trivial problem at all, and Redlock fails as one. If you are up for it, you can consider writing such a thing over the linearizable strong consistency mode Aerospike 企业版 4.0。
与 Redis 及其变体相反,Aerospike EE 4.0 passes Jepsen。