Pulse v0.1.1 Pulse.Directory
The Pulse.Directory
module maintains connections and tracks available nodes registered for each discovered service. This module is monitored by Pulse internally, you do not need to start a worker to use it.
Pulse.Directory.get/1
is the primary way to retrieve available nodes for any given discovered service.
> Pulse.Directory.get("my_service")
[:"my_machine1@ip-123-234-124-235.local", :"my_machine2@ip-123-234-124-235.local"]
These nodes will already be connected by the Pulse.Directory
process and are valid RPC targets if necessary. The directory also monitors connections and will unregister nodes from service lists if they disconnect.
Summary
Functions
Retrieve a list of connected nodes that are registered to provide the given service