braft icon indicating copy to clipboard operation
braft copied to clipboard

能用braft实现类似etcd里的watch接口吗,怎么做?

Open ufosky opened this issue 4 years ago • 2 comments

如果要实现类似etcd的kv存储,怎么实现watch某个或某些key的变化 https://etcd.io/docs/v3.3.12/learning/api/#watch-api

ufosky avatar Aug 13 '19 09:08 ufosky

这个功能类似于ZK的watch功能,跟raft本身没有关系吧 etcd的很多功能与zookeeper类似

hnwyllmm avatar Aug 14 '19 02:08 hnwyllmm

这个属于基于raft构建的业务层需要考虑实现的,如果使用brpc的话,可以参考:https://github.com/apache/incubator-brpc/blob/master/docs/cn/server_push.md

ipconfigme avatar Aug 15 '19 08:08 ipconfigme