[erlang-questions] gproc and gen_event

Andrew Berman <>
Sat May 19 21:00:44 CEST 2012


Thanks for this!

On Thu, May 17, 2012 at 7:25 PM, AD <> wrote:

> Andrew,
>
>  I posted about something similar on my blog
> http://blog.dberg.org/2012/04/using-gproc-and-cowboy-to-pass-messages.html.
>  I cant speak to gen_event personally, I havent used it that much, but I
> think its more of a use case for logging errors and such centrally versus a
> messaging system but I could be off here.
>
> -A
>
> On Thu, May 17, 2012 at 8:14 PM, Andrew Berman <> wrote:
>
>> Hello,
>>
>> I am trying to set up a pub-sub type situation where I have a function
>> called which does some stuff and at the end broadcasts a message.  I would
>> like for multiple handlers to be able to receive that message and do
>> something with it.  I'm currently using gen_event, but have been reading
>> about gproc as well.  Can anyone explain why they'd use one over the other
>> for pub/sub?
>>
>> Thanks,
>>
>> Andrew
>>
>> _______________________________________________
>> erlang-questions mailing list
>> 
>> http://erlang.org/mailman/listinfo/erlang-questions
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20120519/ef6f0566/attachment.html>


More information about the erlang-questions mailing list