Re: group messaging, empheral nodes on zookeeper

2009-01-06 Thread Mahadev Konar
I think ben already responded to your second question. Just to make sure all of the questions in 2 are answered -- - > 2. What happens to Empheral Nodes when a zookeeper server (not client) dies or > is separated from the group ? > > Supposing there are 5 zookeeper servers: server_1, ..., server

RE: group messaging, empheral nodes on zookeeper

2009-01-06 Thread Benjamin Reed
With respect to your 2nd question (in case it didn't get answered) nothing happens to the ephemeral nodes. as long as the client is able to talk to any active server before the session timeout the ephemeral nodes will stay. ben From: Nuthan Ashkore [nutha

RE: group messaging, empheral nodes on zookeeper

2009-01-06 Thread Benjamin Reed
messaging, empheral nodes on zookeeper > > In case 1), if you are proposing to overwrite the content of the znode, > then you would need first to make sure that all receivers have already > received the previous message. This doesn't seem a good solution to me > because a

Re: group messaging, empheral nodes on zookeeper

2009-01-06 Thread Flavio Junqueira
On Jan 6, 2009, at 6:55 PM, Kevin Burton wrote: In case 1), if you are proposing to overwrite the content of the znode, then you would need first to make sure that all receivers have already received the previous message. This doesn't seem a good solution to me because a client that want

Re: group messaging, empheral nodes on zookeeper

2009-01-06 Thread Flavio Junqueira
One potential problem with solution 2 is that a naive implementation may cause what we call a "herd effect": once there is a new message, zookeeper generates a large number of notifications and all these clients generate a request to receive the message. Depending on the requirements of you

Re: group messaging, empheral nodes on zookeeper

2009-01-06 Thread Kevin Burton
> > In case 1), if you are proposing to overwrite the content of the znode, > then you would need first to make sure that all receivers have already > received the previous message. This doesn't seem a good solution to me > because a client that wants to broadcast a message would have to wait until

Re: group messaging, empheral nodes on zookeeper

2009-01-06 Thread Flavio Junqueira
If I understand it correctly, you propose two mechanisms: 1- Have one single node, and modify the data of that znode; 2- Have a znode, say "/broadcast", and have clients creating a new child znode under "/broadcast" for every new message they want to broadcast. In case 1), if you are propos

Re: group messaging, empheral nodes on zookeeper

2009-01-06 Thread Kevin Burton
> > 1. Group Messaging: > Is it possible to do group messaging with zookeeper 3.0.1 ? > If not, are there any plans to add group messaging (say w/ casual ordering > or even better total ordering) to future releases ? > What would be the best approach if I need to do group messaging using > zookeepe