[erlang-questions] Is gproc pub/sub pattern good for status notification?
Christopher Meiklejohn
cmeiklejohn@REDACTED
Sat Nov 9 17:02:44 CET 2013
On Saturday, November 9, 2013 at 3:54 AM, Akshat Jiwan Sharma wrote:
> I am trying to solve the notification problem in erlang using gproc (https://github.com/uwiger/gproc)
>
>
> There are two solutions which immediately come to mind
>
> Solution 1
>
> 1.Create a channel for the user
>
>
> 2.Subscribe his friends to his channel(iterative process).
>
>
> 3.Notify them on state change.
>
> Solution 2
>
> Create a channel for the user.
>
>
>
> Send messages using gproc:send/2 on state change(again an iterative process)
Out of curiosity, are you planning on using gproc locally or with the global distribution as provided by gen_leader?
- Chris
--
Christopher Meiklejohn
Software Engineer
Basho Technologies, Inc.
More information about the erlang-questions
mailing list