Local Process Registered Name as Term
Vance Shipley
vances@REDACTED
Mon Aug 30 16:22:13 CEST 2021
What advice can I get on a process registry solution for local (only)
lookup using term() rather than atom()?
The obvious candidates are erlang:register/2 for atoms and
global:register_name/2 for other terms:
erlang:register(Name :: atom()), PidOrPort) ->
global:register_name(Name :: term(), Pid) ->
Which is fine however when it will only be used locally global is a
heavyweight solution.
Should I roll my own using ets? A process? Other?
--
-Vance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20210830/e254b40a/attachment.htm>
More information about the erlang-questions
mailing list