apple / apple/swift-distributed-actors
Cluster Receptionist allow local publish delay
- Dominant language
- Swift
- Stars
- 679
- Forks
- 84
- PR merge metrics
- No merged PRs in 30d
Description
The OpLogReceptionist works on operations which get bursted up and streamed.
We may want to wait locally between multiple pushes before publishing a "batch update" to all local subscibers. This can yield less "churn" when the reception is very busy.
To be determined if this is very helpful or not so much
```
// /// Whenever a reception key observes a change (a new actor registering or being removed),
// /// listing updates are performed to all subscribers of given key locally.
// /// In order to avoid a churn of one-by-one changes
// public var localPublishDelay: TimeAmount = .seconds(1)
```
Contributor guide
Research direction
Start with the OpLogReceptionist entry point and trace how reception-key changes are published to local subscribers. Clarify whether a local publish delay is worthwhile, how multiple changes should form a batch, and what observable behavior would demonstrate reduced churn. The issue is complete only once those semantics and validation criteria are agreed.
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