Wed Jul 3 23:56:43 CEST 2002
I would go for the many processes variant, a few hundred processes is not
much in erlang terms. If it makes the design clearer then what's the
Though I am interested, what do you intend to benefit from a message passing
manager that you do not get for free with the message passing build in into
erlang? You could possibly write a server wrapper to gen_server or something
to hide the message passing between regions.
Unless each region has its own implementation I wouldn't worry about the
debugging. You would probaly soon very clearly see what is going on in your
system using a combination of erlang trace and disklog (that's what we're
Btw erlang trace is great!
----- Original Message -----
From: "Vlad Dumitrescu" <>
Sent: Wednesday, July 03, 2002 10:42 AM
Subject: design question
> Hi all,
> I have a design decision to make and I feel it would be beneficial with
> more and qualified opinions.
> The data structure is an ordered set of entities (=regions), with rather
> heavy cross-referencing between them. Each is related to an owner process
> and messages will go between the regions (conceptually).
> The first idea was to implement the regions as own processes, because the
> design is clearer and seems to be easier to see what's going on. On the
> other hand, it would be somewhat more difficult to debug and there are
> a lot (hundreds) of these regions alive (although not more than a few
> at a time).
> The other solution is to implement a manager process that will handle the
> message passing on behalf of the regions. The handling of the data woud be
> more complicated, though.
> It isn't easy to switch between the paradigms, so I thought I'd try to
> choose before starting. I don't have experience with systems with that
> long-lived processes running, so I am not sure how the system would behave
> with some 100's of regions and some tenths of owners...
> I look forward to hearing *your* opinion! Thanks!¨
> Best regards,
> Med MSN Foto kan du enkelt dela med dig av dina fotografier och beställa
> kopior: http://photos.msn.se
More information about the erlang-questions