README ¶ Simple HTTP-based key-value store example This example demonstrates how easily you can implement an HTTP-based in-memory distributed key value store using BRaft. Usage Build example: go install ./... Run nodes locally: BRAFT_RPORT=15000 braft BRAFT_RPORT=16000 braft BRAFT_RPORT=17000 braft Put value on any node: curl -X POST 'http://localhost:15002/kv?map=test&k=somekey&v=somevalue' Get value from all the nodes: curl 'http://localhost:15002/kv?map=test&k=somekey' curl 'http://localhost:16002/kv?map=test&k=somekey' curl 'http://localhost:17002/kv?map=test&k=somekey' Distribute some items gurl POST :15002/distribute Expand ▾ Collapse ▴ Documentation ¶ There is no documentation for this package. Source Files ¶ View all Source files main.go Click to show internal directories. Click to hide internal directories.