Erlang/OTP Forums

Author Message

<  Erlang  ~  group commuincation

jmontelius
Posted: Sat Mar 07, 2009 8:21 pm Reply with quote
User Joined: 07 Mar 2009 Posts: 29
I had a look at the pg and pg2 modules and have some questions. In the manual for pg it sais "inpired by ISIS" but pg does not as ISIS guranatee very much at all. The implementation of group semding simply sends a message to each memeber in the group. Since it uses regular send with out acknowledgment the delivery is not reliable. Furthermore, if the group manager dies for some reason only half of the members could have received the message.

The pg2 module does not provide reliable multicasting at all, it simply keeps track of the members. It's all up to a client to retrieve the members and start sending the messages. It's thus all up to the client to implement any ordering.

Is there any one using the pg module? Is there intrest in a better group membership service that is foult tolerant and does reliably deliver messages?
View user's profile Send private message
uwiger
Posted: Sun Mar 08, 2009 7:39 am Reply with quote
User Joined: 03 Jul 2006 Posts: 604 Location: Sweden
jmontelius wrote:
Is there any one using the pg module? Is there intrest in a better group membership service that is foult tolerant and does reliably deliver messages?


Personally, I tend to use gen_leader (http://www.cs.chalmers.se/~hanssv/leader_election/). While it doesn't automatically guarantee reliable delivery to workers, I think it has better facilities for the job, and I have much more confidence in the leader election algorithm.
View user's profile Send private message Visit poster's website

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum