| Crates.io | overlord |
| lib.rs | overlord |
| version | 0.4.2 |
| created_at | 2019-10-30 10:07:50.708538+00 |
| updated_at | 2022-07-11 09:59:01.338122+00 |
| description | Overlord consensus procotol. |
| homepage | |
| repository | https://github.com/cryptape/overlord |
| max_upload_size | |
| id | 176884 |
| size | 253,180 |
Overlord consensus protocol.
Overlord is a new consensus protocol that decouple the consensus process from the execution process.
Detailed introduction: 中文|English
[dependencies]
overlord = "0.4"
Overlord takes turns to become the leader by default. If you want to choose a leader randomly, add the random_leader feature to the dependency as below.
[dependencies]
overlord = { version = "0.4", features = ["random_leader"] }
We simulated a salon scene to show an example of using overlord.
A distributed system for reaching a consensus on the content of a speech is realized by simulating the dialogue between speakers through the communication between threads.
Run the example by cargo run --example salon, and the system will output the agreed speech content in turn. Click here to see the detail.
It will check whether different speakers agree on the content of the speech.