apple / apple/swift-distributed-actors

Cluster Receptionist allow local publish delay

Open
#481 0 comments 0 reactions 0 assignees View on GitHub
1 - triaged t:cluster:all t:receptionist
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.