bakwc / PySyncObj

A library for replicating your python class between multiple servers, based on raft protocol
MIT License
706 stars 113 forks source link

syncobj_admin support data query option such as get and list? #145

Closed cobolbaby closed 3 years ago

cobolbaby commented 3 years ago

Just like etcdctl .

bakwc commented 3 years ago

Currently there is no ability to do it. Syncobj (unlike etcd) by itself doesn't store anything. How is it supposed to work?

cobolbaby commented 3 years ago

Oh, I had a misunderstanding before. Does this mean that PySyncObj only provides the function of file synchronization, and does not care about the content? The synchronized data is completely user-defined.

bakwc commented 3 years ago

Does this mean that PySyncObj only provides the function of file synchronization, and does not care about the content?

Sort of, it provide API for synchronization of state machines (in a simple case - python classes).

cobolbaby commented 3 years ago

ok