Chinese Yellow Pages | Classifieds | Knowledge | Tax | IME

zookeeper vs etcd

Use cases

both provide strong consistance for key/value store.

zookeeper use ZAB, etcd use raft, usually one leader.

normally use as configure store

Zookeeper
more like file system

https://zookeeper.apache.org/doc/r3.3.6/zookeeperStarted.html

bin/zkCli.sh -server 127.0.0.1:2181
LD_LIBRARY_PATH=. cli_mt 127.0.0.1:2181
set /zk_test junk
get /zk

etcd:

https://etcd.io/docs/v3.5/quickstart/

etcdctl put greeting "Hello, etcd"

etcdctl get greeting

Documents


https://www.youtube.com/watch?v=BhosKsE8up8&ab_channel=BitTiger%E5%AE%98%E6%96%B9%E9%A2%91%E9%81%93BitTigerOfficialChannel

Please rate this


Comments are closed here.