Supervisor as process registry

Lennart Ohman lennart.ohman@REDACTED
Sun Sep 3 21:24:23 CEST 2006


Hi Ivan,
If your are "only" planning on using already existing functionality
in the supervisors, I can't see any objective reason why not.
But do not extend the supervisors to do other work. In the
supervision model supervisors must be correct for it to work.
Meaning that there can not be any errors in their code. If
you modify their behaviour, you risk introducing faults.

Best Regards,
Lennart

-------------------------------------------------------------
Lennart Ohman                   office  : +46-8-587 623 27
Sjoland & Thyselius Telecom AB  cellular: +46-70-552 67 35
Sehlstedtsgatan 6               fax     : +46-8-667 82 30
SE-115 28, STOCKHOLM, SWEDEN    email   : lennart.ohman@REDACTED

> -----Original Message-----
> From: owner-erlang-questions@REDACTED [mailto:owner-erlang-
> questions@REDACTED] On Behalf Of Ivan Dubrov
> Sent: Sunday, September 03, 2006 7:53 AM
> To: Erlang Questions
> Subject: Supervisor as process registry
> 
> Hi,
> 
> A theoretical question. Is it OK from the point of design to use
> supervisor process as a process registry (in other words, as a mapping
> between some ServiceId -> Service), so worker processes can lookup other
> workers from it?
> 
> --
> WBR,
> Ivan S. Dubrov






More information about the erlang-questions mailing list