How to use the registry for global process?

How can I register and call global process in a cluster using the new Registry api https://hexdocs.pm/elixir/Registry.html

1 Like

You can’t. As the documentation says, the Registry is local and not distributed.

1 Like

Is there a library you can recommend for this?

1 Like

Erlang ships with a module named :global. You can also look at libraries such as Swarm and Syn.

17 Likes

Thanks I’ll check swarm

1 Like