Comcast / Comcast/sirius

Model leader election as simple FSM

Open
#100 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Scala
Stars
296
Forks
48
PR merge metrics
No merged PRs in 30d

Description

Election in the Leader actor is actually quite a simple FSM. This could be modeled very easily with `context.become()` (or with a real FSM, though that might be overkill). It would reduce the amount of variable state in the Leader somewhat. This change would also make it significantly clearer what the leader does with incoming messages in each case.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.