Is your feature request related to a problem? Please describe.
I looked at the five_node example and it is quite a lot of code and hard to understand when one is not familiar with raft. I came here because I'm just doing some experimentation with rust and wanted a simple method to implement a leader election in my sample multi-instance server application
Describe the solution you'd like
Maybe some builder-like API where I can just pass the needed configuration into a builder struct that then gives me an instance of the raft protocol manager component of this crate where I can just get the leader / subscribe to an event mechanism that triggers when the leader changes
Describe alternatives you've considered
No using raft at all? but I want to get started understanding a bit more about raft ;)
Is your feature request related to a problem? Please describe.
I looked at the five_node example and it is quite a lot of code and hard to understand when one is not familiar with raft. I came here because I'm just doing some experimentation with rust and wanted a simple method to implement a leader election in my sample multi-instance server application
Describe the solution you'd like
Maybe some builder-like API where I can just pass the needed configuration into a builder struct that then gives me an instance of the raft protocol manager component of this crate where I can just get the leader / subscribe to an event mechanism that triggers when the leader changes
Describe alternatives you've considered
No using raft at all? but I want to get started understanding a bit more about raft ;)