[erlang-questions] [99s-extend] How to broadcaset with ranch?

David Mercer dmercer@REDACTED
Wed Aug 21 19:04:25 CEST 2013

On Tuesday, August 20, 2013, Andrew Thompson wrote:

> On Tue, Aug 20, 2013 at 10:18:19PM -0500, Sean Cribbs wrote:
> > This is exactly the sort of thing gen_event is for. I would make each
> > server process register a handler at startup using
> > gen_event:add_sup_handler() and then have the handle_event callback
> > simply relay the event to the server processes. Yes, gproc can do
> > this, but why incur its extra features and overhead?
> pg2 also works fairly well.

Can someone summarize the advantages/disadvantages of each: gproc, gen_event, and pg2?



More information about the erlang-questions mailing list