[erlang-questions] pub-sub server implementation detail question.

Tim Watson <>
Tue Mar 5 21:37:18 CET 2013


On 5 Mar 2013, at 20:26, Dmitry Kolesnikov wrote:
> If you implement PubSub via gen_event then all you subscriber handlers are executed within dispatcher process. This is not good. you would end-up implementing an gen_event handler as a proxy to your subscriber. Why to bother if ten_server can be used directly.

Not to mention the fact that if a gen_event handler crashes, it is silently and unceremoniously removed. See add_sup_handler for a way around that old chestnut. :)

Cheers,
Tim


More information about the erlang-questions mailing list