[erlang-questions] beginner: passing messages between supervisor trees
Pinku Surana
suranap@REDACTED
Tue Mar 11 20:24:34 CET 2008
I'm still new to the idea of supervisors in Erlang. Assume I have a client C managed by supervisor MC, and server S managed by supervisor MS. When C sends a message to S, does the message get routed through MC and MS first? Or do C and S communicate directly? If so, where in the code are they connected together?
If C sends a message to S and S fails, will C's message be saved somewhere so it can try again after restarting S? Is this done automatically, or manually by one of the supervisors?
If S fails repeatedly, then I want to replace it with S2 (a simpler task). How can C's messages be routed to S2 transparently? I don't want C to be aware of the failures.
I hope that made sense. Thanks.
_________________________________________________________________
Climb to the top of the charts! Play the word scramble challenge with star power.
http://club.live.com/star_shuffle.aspx?icid=starshuffle_wlmailtextlink_jan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20080311/fc674a04/attachment.htm>
More information about the erlang-questions
mailing list