Skip to content

What application is used to generate the state machine demo in the docs? #396

Answered by lovettchris
DylanSp asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, the sample code is available here. The code has evolved a bit since the diagram was generated, but you can see the SafetyMonitor is the one that is ensuring there is only one leader per "Term", where Term is a concept of version or time in the Raft protocol. This is for the "Mock" version where testing of the Raft protocol is done all in one process.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by pdeligia
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #37 on October 17, 2022 17:00.