PikaLabs / floyd

A raft consensus implementation that is simply and understandable
GNU General Public License v3.0
321 stars 106 forks source link

About add a simple example to test floyd #8

Closed Leviathan1995 closed 7 years ago

Leviathan1995 commented 7 years ago

Maybe we can refer to the implementation of Raft by etcd. site: https://github.com/coreos/etcd/tree/master/contrib/raftexample

baotiao commented 7 years ago

Yes, I am reading the interface of etcd's raft. And I havn't find a production ready raft implementation written by c++. floyd want to be production read raft implementation

Leviathan1995 commented 7 years ago

etcd provides a simple REST API for operations, so it is very easy to implement some examples. Maybe HTTP is too heavy, but we can get some inspiration for test floyd.

baotiao commented 7 years ago

etcd only provide a kv store by REST API. That's not what I wanted, floyd have a kv example, kv example have a server and a client. The same as etcd.