Removes a node from the registry.
The id of the node to remove.
Returns a snapshot of the currently live nodes.
The live nodes; expired entries are pruned before the snapshot is taken.
Registers (or refreshes) a node with a heartbeat lifetime.
The node to register.
Optional_ttlMs: numberLifetime in milliseconds; the node is considered gone if not refreshed within this window.
Subscribes to membership changes.
Invoked with the full set of live nodes whenever membership changes.
A function that cancels the subscription when called.
Decentralized Membership that spreads node state across a cluster with SWIM-style anti-entropy gossip — no Redis/etcd, no central coordinator.
Remarks
Each node periodically gossips its view (self + known peers, each tagged with a monotonic incarnation and alive flag) to a random fanout of peers over a GossipTransport. Newer incarnations win; at equal incarnation a dead claim overrides a live one, and a node refutes a false death report by advancing its own incarnation. Peers not heard from within
deadTimeoutMsare marked dead and eventually tombstone-GC'd. Pair with MembershipReconciler to react to joins/leaves. This is AP (available under partition) with no quorum, so treat ownership derived from it as advisory unless fenced.