View Source Spawn.Cluster.StateHandoff.Controllers.NatsKvController (spawn v2.0.0-RC1)
This handles state handoff in a cluster.
It uses the Nats jetstream library to handle a distributed state, which is an eventually consistent replicated data type.
Summary
Functions
Cluster HostActor cleanup
Types
@type data() :: any()
@type host() :: Actors.Registry.HostActor.t()
@type hosts() :: [Actors.Registry.HostActor.t()]
@type id() :: Spawn.Actors.ActorId.t()
@type new_data() :: data()
@type node_type() :: term()
@type opts() :: Keyword.t()