Currently, Raft node applies state machine commands on the state machine consumer object passed by the RaftKVStore. This requires the raft node to be set up on the client side which is unacceptable since we do not want the KVStores to embed the servers.
Therefore, the idea is on the server side, we just need to set up the nodes and we shall only implement client side logic on the KVStores (see issue #17). So we shall leverage the StateMachineRequest/Response pairs to apply commands on the client's state machine.
Currently, Raft node applies state machine commands on the state machine consumer object passed by the RaftKVStore. This requires the raft node to be set up on the client side which is unacceptable since we do not want the KVStores to embed the servers. Therefore, the idea is on the server side, we just need to set up the nodes and we shall only implement client side logic on the KVStores (see issue #17). So we shall leverage the StateMachineRequest/Response pairs to apply commands on the client's state machine.