Skip to content

Simplified API for creating a multinode cluster #581

@chtpl

Description

@chtpl

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 ;)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions