[erlang-questions] Atomically replace named process?

Bob Ippolito bob@REDACTED
Thu Jun 12 16:06:18 CEST 2014


Using gproc (or even just ets) is also a solution. Whether you need the
names to be redundant or not, using ets instead of the process registry
will allow you to replace them atomically.

On Wednesday, June 11, 2014, Michael Truog <mjtruog@REDACTED> wrote:

> If you need redundant process names, you should probably look at pg2 (
> http://www.erlang.org/doc/man/pg2.html) or cpg (
> https://github.com/okeuday/cpg/).
>
> On 06/11/2014 12:17 AM, Roger Lipscombe wrote:
>
>> I've got a gen_server with a particular name. I've got a bunch of
>> other processes calling and casting to it, by name.
>>
>> Can I spin up another gen_server, and have the name transferred
>> without anyone noticing? That is: can I redirect the calls and casts
>> to the new process without interruption?
>>
>>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20140612/302404c7/attachment.htm>


More information about the erlang-questions mailing list