[erlang-questions] How to put together gproc, hundreds of thousand of processes, timeouts?

Max Bourinov bourinov@REDACTED
Thu Nov 10 09:15:59 CET 2011


Got it!
Thank you very much!!!


Best regards,
Max




On Thu, Nov 10, 2011 at 11:08 AM, Ulf Wiger
<ulf.wiger@REDACTED>wrote:

>
> On 10 Nov 2011, at 08:19, Max Bourinov wrote:
>
> In my case I am getting messages from decoupled system over XMPP, so there
> is nothing really dies
>
>
> Famous last words… ;-)
>
> I think that, since the overhead for having the ticker process monitor the
> parent is minimal, one may as well play it safe.
>
> About your code:
> I am quite new to erlang, but for me it seems that you also sends tock
> messages on a constant base?
> Please correct me if I am wrong.
>
>
> Yes, it was just a variant of your implementation, adding monitoring for
> safety and hibernation to reduce the memory footprint. For your particular
> domain, either may be optional, of course. The basic functionality is still
> that each process would start its own ticker process, which periodically
> sends a tick message to its parent.
>
> BR,
> Ulf W
>
>  Ulf Wiger, CTO, Erlang Solutions, Ltd.
> http://erlang-solutions.com
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20111110/922e1abe/attachment.htm>


More information about the erlang-questions mailing list