Skip to content

Latest commit

 

History

History
34 lines (21 loc) · 470 Bytes

README.md

File metadata and controls

34 lines (21 loc) · 470 Bytes

distributedKV

A distributed key value store built on top of Raft consensus algorithm.

Getting Started

Add a key:

curl -X POST 'localhost:9023/put' -d '{"key": "x", "value": "23"}' -H 'content-type: application/json'

Get the key:

curl 'localhost:9023/get?key=x'

Add a follower node:

curl 'localhost:9023/join?id=2'

Remove a node:

curl 'localhost:9023/leave?id=2'

TODO

  • Implement Graceful Shutdown