3 ms·
I think everyone could benefit from extracting that raft implementation to a crate. I'll see if I can get started on that.
by arthursilva 11y ago
I think everyone could benefit from extracting that raft implementation to a crate. I'll see if I can get started on that.
- viperscape 11y agoI think hoverbear has a raft crate: https://github.com/Hoverbear/raft-rs https://github.com/Hoverbear/raft-rs
- bluejekyll 11y agoYes, I was just wondering why they didn't use that? I reviewed that raft implementation. Looks decent and uses mio for non-blocking io, which was quite clean (I'm jealous).
- justinsb 11y agoMost raft implementation don't implement dynamic reconfiguration or snapshots/compaction. AFAICT hoverbear implements neither, and Tikv implements at least snapshots.
- bluejekyll 11y agoYou're right. And thanks for the pointer on this implementing snapshots.
- hoverbear 11y agoHi! Thanks for linking this! We're hoping to add more robust features like dynamic membership soon! I'm graduating and will have more time. If you feel like hacking on our code please just let us know, we'd love to help.
- ideal0227 11y agotikv's raft is a port of etcd/raft, which is used by a few projects in production. So we can expect rust raft to be mature soon.