[erlang-questions] Generic server and state recovery
Jesper Louis Andersen
jesper.louis.andersen@REDACTED
Thu Dec 9 19:11:12 CET 2010
On Thu, Dec 9, 2010 at 7:09 PM, Alessandro Sivieri
<alessandro.sivieri@REDACTED> wrote:
> Well, my server process maintains a list of other processes associated with
> unique keys in a dictionary, and I have found out that if the server process
> itself crashes, I am able to recover process pids and keys directly from the
> supervisor (I have a secondary dedicated supervisor for those processes);
> for now I am not trapping exists, but it may become useful later...
> I may also save that data in some persistent locus, if needed.
Don't underestimate the power of using monitors for this task.
--
J.
More information about the erlang-questions
mailing list