4 ms·
Distributed Locks with Consul and Golang
- slap_shot 10y agoGreat read. Did you look at etcd[0][1] when considering a distributed kv store/locking mechanism? If so, what were the pros/cons of each and what lead you to consul? [0] https://github.com/coreos/etcd https://github.com/coreos/etcd [1] https://github.com/coreos/etcd/tree/master/client https://github.com/coreos/etcd/tree/master/client
- mthenw 10y agoThanks! I was using Consul because we had that already deployed. After quick research looks like etcd client doesn't provide nice abstraction for creating dist locks. I found [1] and [2] though. Definitely it's doable with etcd. [1] https://github.com/datawisesystems/etcd-lock https://github.com/datawisesystems/etcd-lock [2] https://github.com/ORBAT/node-etcd-lock https://github.com/ORBAT/node-etcd-lock