apple / apple/swift-distributed-actors

Membership with many role leaders

Open
#140 0 comments 0 reactions 0 assignees View on GitHub
t:cluster:membership
Dominant language
Swift
Stars
677
Forks
85
PR merge metrics
No merged PRs in 30d

Description

We might want to offer leaders be in various roles.

`leader(of: role) -> Member?`

We don't yet have member roles, and they should be dynamic as well;
So we'd want to be able to change a member's role and run an election for that role.
This might want to require the "all members have seen the role change" and similar requirements which we're still getting away without... 🤔

----

Do we want to have some capability for "2nd in line leaders"? Just random idea... let's not do it right now perhaps, though food for thought.

Contributor guide

Open the contributing guide

Research direction

No file, test, or entry point is named. Start by locating the existing membership and leader-election design, then clarify the role model, role changes, and visibility requirements before defining what an accepted implementation would include.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
distributed-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.