[erlang-questions] Atomically replace named process?

Dmitry Kolesnikov dmkolesnikov@REDACTED
Wed Jun 11 09:49:40 CEST 2014


yes, but ...

Only one process can be registered to name. You can kill old process and start new process with same name.
The transition period would not be transparent for client. They would exit with no_proc. However, properly 
defined supervision strategy would recover errors during transition period. 

On another hand, hot code / application upgrades might help you to deploy a new version of gen_server in transparent mode.

- Dmitry

On 11 Jun 2014, at 10:17, Roger Lipscombe <roger@REDACTED> 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?
> -- 
> Roger.
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions

More information about the erlang-questions mailing list