[erlang-questions] beginner: Looking for info on hot code updates

Christian S <>
Thu Nov 1 12:57:42 CET 2007


I think I read about the mechanism in Concurrent Programming in Erlang
  http://www.erlang.org/download/erlang-book-part1.pdf

And as far as I understand "everyone" that use code upgrading
practically do so by basing every process on OTP behaviors. See the
code_switch callback in a gen_server for example. The gen_server
elects to be notified of a new version of the behavioral module, so it
can code switch to it. All you have to do is to write the code that
transform the old data structures to the new version.

2007/11/1, David Mitchell <>:
> Hello all,
>
> Pure and simple - I'm looking for a pointer to info on doing hot code
> updates (i.e. update code while a server is running) in Erlang.  I've
> seen lots of talk about it, but nothing on:
> - how to do it
> - pros/cons/caveats/assumptions
> - what happens when that code is currently being executed by a running process
>
> If there's some magic combination of keywords that'll get me this info
> in Google, I can't work out what it is.  It's probably covered
> extensively at www.erlang.org under the Documentation link, but I
> can't find anything there either (probably just looking in the wrong
> place).
>
> Sorry if the request sounds pathetic, but I'm just confused why I
> can't find this info when pretty much everything else on Erlang is
> easy to find.  Maybe it's just a slow brain day for me today
>
> Thanks in advance
>
> Dave M.
> _______________________________________________
> erlang-questions mailing list
> 
> http://www.erlang.org/mailman/listinfo/erlang-questions
>



More information about the erlang-questions mailing list