Skip to content

Conversation

@ktoso
Copy link
Member

@ktoso ktoso commented Jun 6, 2022

Resolves #927 for the first beta release.

We'll be adding much more docs, but this is a good enough first cut.

@ktoso ktoso requested a review from yim-lee June 6, 2022 12:12
@ktoso ktoso enabled auto-merge (squash) June 6, 2022 12:35
@ktoso ktoso disabled auto-merge June 6, 2022 12:35
@ktoso ktoso merged commit 7d30855 into apple:main Jun 6, 2022
@ktoso ktoso deleted the wip-docs-2 branch June 6, 2022 12:35
Comment on lines +27 to +28
/// A node (or member) is referred to as a "replacement" if it shares _the same_ protocol+host+address (i.e. ``Node``),
/// with another member; It MAY join "over" an existing node and will immediately cause the previous node to be marked ``Cluster/MemberStatus/down``
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// A node (or member) is referred to as a "replacement" if it shares _the same_ protocol+host+address (i.e. ``Node``),
/// with another member; It MAY join "over" an existing node and will immediately cause the previous node to be marked ``Cluster/MemberStatus/down``
/// A node (or member) is referred to as a "replacement" if it shares _the same_ protocol+host+address (i.e. ``Node``)
/// with another member; it MAY join "over" an existing node and will immediately cause the previous node to be marked ``Cluster/MemberStatus/down``

/// A leader returning a non-nil value, guarantees that the same Member existing as part of this `Membership` as well (non-members cannot be leaders).
/// A leader is a specific ``Cluster/Member`` which was selected to fulfil the leadership role for the time being.
///
/// A leader returning a non-nil value, guarantees that the same ``Cluster/Member`` existing as part of this ``Cluster/Membership`` as well (non-members cannot be leaders).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/// A leader returning a non-nil value, guarantees that the same ``Cluster/Member`` existing as part of this ``Cluster/Membership`` as well (non-members cannot be leaders).
/// A leader returning a non-nil value guarantees that the same ``Cluster/Member`` existing as part of this ``Cluster/Membership`` as well (non-members cannot be leaders).

### Leadership

TODO: document leadership and Leadership changes.
The cluster is able to use any node discovery mechanism that implements the `ServiceDiscovery` protocol that has an implementation of the `ServiceDiscovery` protocol. like for example: [tuplestream/swift-k8s-service-discovery](https://github.com/tuplestream/swift-k8s-service-discovery) which implements discovery using the kubernetes (k8s) APIs:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
The cluster is able to use any node discovery mechanism that implements the `ServiceDiscovery` protocol that has an implementation of the `ServiceDiscovery` protocol. like for example: [tuplestream/swift-k8s-service-discovery](https://github.com/tuplestream/swift-k8s-service-discovery) which implements discovery using the kubernetes (k8s) APIs:
The cluster is able to use any node discovery mechanism that implements the `ServiceDiscovery` protocol. For example: [tuplestream/swift-k8s-service-discovery](https://github.com/tuplestream/swift-k8s-service-discovery) which implements discovery using the kubernetes (k8s) APIs:

> order to let others know they are available to meet now.
Checking-in with the receptionist is performed by calling ``DistributedReceptionist/checkIn(_:with:)`` and passing a
specific key; The key is useful for when the same types of actor, may want to perform different roles. For example, you may
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
specific key; The key is useful for when the same types of actor, may want to perform different roles. For example, you may
specific key. The key is useful for when the same type of actors may want to perform different roles. For example, you may

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Revive and rewrite some docs about distributed actors

2 participants