ConvergeLedger.Discovery (Converge Ledger v0.1.2)
View SourceHandles service discovery and grouping using Erlang's pg (Process Groups).
Allows processes to:
- Register as serving a specific context ("domain").
- Discover other nodes/processes serving that context.
- Broadcast messages to the group.
Summary
Functions
Broadcasts a message to all members serving context_id (including self).
Registers the current process as a member of the group serving context_id.
Leaves the group serving context_id.
Returns a list of local PIDs serving context_id.
Returns a list of PIDs serving context_id across the cluster.
Functions
Broadcasts a message to all members serving context_id (including self).
Registers the current process as a member of the group serving context_id.
Leaves the group serving context_id.
Returns a list of local PIDs serving context_id.
Returns a list of PIDs serving context_id across the cluster.