Local Process Registered Name as Term
Vance Shipley <[email protected]>
| Newsgroups | gmane.comp.lang.erlang.general |
|---|---|
| Message-ID | <CAMoa0NLngpxY2pmdQvA2MkO6u8L=gCgpfxW=84MsSMZ3DHiiYg@mail.gmail.com> |
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