The Registry module provides local registration. It does not provide global
registration. Since a better global registry is something the OTP team is
working on, there was little use in doubling the effort.
That said, you can call a named GenServer on another node using {server_name,
node_name} as "reference".
Michał.
On 14 Mar 2017, 18:27 +0100, Dave Thomas <[email protected]>, wrote:
> but the Registry module seems to require to be called by name, and not by
> pid. Given that, I can see a way of using it between nodes.
>
> I wanted to replace the now-deprecated GenEvent with Registry, but this seems
> to be a roadblock.
>
> As I said, I must be missing something obvious.
>
>
> Dave
> --
> You received this message because you are subscribed to the Google Groups
> "elixir-lang-core" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elixir-lang-core/e353ee99-95b2-4471-b146-b9a7306eed3d%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/elixir-lang-core/a288964d-82db-4d72-b232-7171e87e2170%40Spark.
For more options, visit https://groups.google.com/d/optout.