Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Plain View
Zookeeper >> mail # dev >> Ephermal node and notifications for stateless sessions


+
Narayanan A R 2012-05-08, 05:22
Copy link to this message
-
Re: Ephermal node and notifications for stateless sessions
In what you're describing, your service creates ephemeral nodes on behalf
of its clients, and has to track the clients liveness. You're redoing a lot
of the logic ZK would handle for you if you had your clients talk directly
to ZK, but you can certainly reimplement that logic if you want. I think
this is a less-than-ideal system design but if you have a system where
stateful connections don't make sense it might be the best you can do.

I would recommend spending some time with the ZK documentation and a
highlighter, it sounds like you might want to design something fairly
complex and it's useful to really understand the system well before you
start on such a task.

C

On Tue, May 8, 2012 at 1:22 AM, Narayanan A R <
[EMAIL PROTECTED]> wrote:

> Hi,
>
> Does ZK support ephermal node creation for stateless clients. Anyone has
> dealt with similar requests? For instance, one or more clients would make
> REST API call to a service and it in turns creates nodes in ZK. Connections
> could be active between the service and ZK but not to the client. I am
> looking something like a client would touch a znode periodically for the
> heartbeat and if the heartbeat goes away, the nodes created by that client
> should get deleted. Is this supported?
>
> Similarly, I am looking for notifications for stateless clients. Basically
> registering a post pack URL for ZK to make a callback.
>
> Regards,
> ARN
>
+
Narayanan A R 2012-05-09, 03:19
+
Patrick Hunt 2012-05-09, 22:18
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB