Registry is an Elixir implementation of a monitored process registry. It allows processes to be associated with names, which may be any type (except for a pid). When a registered process terminates, its association is automatically removed.
The registry is designed to be used with Elixir GenServer :via tuples.
Here is how to create a registry:
Registry.start_link()
Here is how to add an entry to the registry:
Registry.register_name(:foo, pid)
Here is how to remove an entry from the registry:
Registry.unregister_name(:foo)
Here is how to look up an entry in the registry:
pid = Registry.whereis_name(:foo)