No private threads please .. 30 TPS is not good enough .. need tens of thousands ..
Else Zookeeper cannot solve the problem --Srinath On Thu, Jun 7, 2012 at 10:00 AM, Sajini De Silva <saj...@wso2.com> wrote: > > > ---------- Forwarded message ---------- > From: Sajini De Silva <saj...@wso2.com> > Date: Thu, Jun 7, 2012 at 9:54 AM > Subject: zookeeper unique sequential ID generation > To: Charith Wickramarachchi <char...@wso2.com> > Cc: Shammi Jayasinghe <sha...@wso2.com>, Hasitha Hiranya < > hasit...@wso2.com> > > > Hi, > > I wrote an algorithm to do the task using zookeeper EPHEMERAL_SEQUENTIAL > nodes. Since the sequence number generated by zookeeper is just 32 bits I > split 64 bits into two 32 bits. First part is for parent sequential node > and second part is for child ephemeral sequential node. When child > ephemeral run out of their maximum possible sequence numbers, the current > sequential parent node is deleted and create a new node. That causes the > parent sequential number to increase by 1 and the process will be > continued. From this approach i get a continuous ID stream. > > I checked the throughput of the new algo and its around 30. is it a > sufficient throughput ? > > > Thank you. > > -- ============================ Srinath Perera, Ph.D. Senior Software Architect, WSO2 Inc. Visiting Faculty, University of Moratuwa Member, Apache Software Foundation Research Scientist, Lanka Software Foundation Blog: http://srinathsview.blogspot.com/ Photos: http://www.flickr.com/photos/hemapani/ Phone: 0772360902
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev