[erlang-questions] beginner: passing messages between supervisor trees
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions