EventStore v0.11.0-rc.0 EventStore.Registration.Distributed behaviour View Source
Process registration and distribution throughout a cluster of nodes using Swarm
Link to this section Summary
Functions
Starts a process using the given module/function/args parameters, and registers the pid with the given name
Get the pid of a registered name
Callbacks
Publish events to the EventStore.Publisher
running on each connected node
Link to this section Functions
Link to this function
register_name(name, module, fun, args)
View Source
register_name(name :: term, module :: atom, function :: atom, args :: [term]) :: {:ok, pid} | {:error, term}
Starts a process using the given module/function/args parameters, and registers the pid with the given name.
Get the pid of a registered name.
Link to this section Callbacks
Link to this callback
publish_events(stream_uuid, events)
View Source
publish_events(stream_uuid :: term, events :: [EventStore.RecordedEvent.t]) :: :ok
Publish events to the EventStore.Publisher
running on each connected node