[erlang-questions] Understanding supervisor / start_link behaviour
Tim Watson
watson.timothy@REDACTED
Thu Jun 2 11:55:13 CEST 2011
On 2 June 2011 10:14, Ladislav Lenart <lenartlad@REDACTED> wrote:
> On 2.6.2011 11:03, Ahmed Omar wrote:
>>
>> True ({local, Name} -> register locally, not globally, with Name) but you
>> have to be careful if having two instances alive in the same time is
>> acceptable or not.
>
> My bad. By "globally accessible" I meant that the locally
> registered process will be available to all processes on
> the local node.
You might consider gproc for these kinds of use cases. It provides a
great deal of simplification around synchronising startups and
registering names etc.
More information about the erlang-questions
mailing list