Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexprut/raft
An implementation of Raft in Go
https://github.com/alexprut/raft
algorithm consensus consensus-algorithm go golang p2p raft
Last synced: 5 days ago
JSON representation
An implementation of Raft in Go
- Host: GitHub
- URL: https://github.com/alexprut/raft
- Owner: alexprut
- License: mit
- Created: 2020-02-10T16:09:37.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-20T09:13:12.000Z (over 4 years ago)
- Last Synced: 2024-06-21T01:58:16.576Z (5 months ago)
- Topics: algorithm, consensus, consensus-algorithm, go, golang, p2p, raft
- Language: Go
- Homepage:
- Size: 591 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Raft
====
An implementation of the [Raft](https://raft.github.io/raft.pdf) consensus algorithm in Go. The following implementation includes: Leader Election.
Log Replication, Membership Changes and Log Compaction is currently work in progress.### Build
```
go build client.go
```
```
go build server.go
```### Test
```
go test
```### Run
```
./server localhost:8001 localhost:8002 localhost:8003 localhost:8004 localhost:8005
./server localhost:8002 localhost:8001 localhost:8003 localhost:8004 localhost:8005
./server localhost:8003 localhost:8001 localhost:8002 localhost:8004 localhost:8005
./server localhost:8004 localhost:8001 localhost:8002 localhost:8003 localhost:8005
./server localhost:8005 localhost:8001 localhost:8002 localhost:8003 localhost:8004
``````
./client localhost:8001 localhost:8002 localhost:8003 localhost:8004 localhost:8005
```License
=======
Licensed under [MIT](https://github.com/alexprut/raft/blob/master/LICENSE).