View Source Spawn.Cluster.StateHandoff.InvocationSchedulerState (spawn v1.3.2)
This handles invocation scheduler stream
It uses the DeltaCrdt library to handle a distributed state, which is an eventually consistent replicated data type. The module starts a GenServer that monitors nodes in the cluster, and when a new node comes up it sends a "set_neighbours" message to that node's GenServer process with its own DeltaCrdt process ID. This is done to ensure that changes in either node's state are reflected across both.
Summary
Functions
Returns a specification to start this module under a supervisor.
Functions
@spec all() :: map()
Returns a specification to start this module under a supervisor.
See Supervisor
.