zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Patrick Hunt <ph...@apache.org>
Subject Re: Zookeeper for generating sequential IDs
Date Fri, 25 Feb 2011 17:51:13 GMT
Have you looked at snowflake?



On Fri, Feb 25, 2011 at 9:43 AM, Ted Dunning <ted.dunning@gmail.com> wrote:
> If your id's don't need to be exactly sequential or if the generation rate
> is less than a few thousand per second, ZK is a fine choice.
> To get very high generation rates, what is typically done is to allocate
> blocks of id's using ZK and then allocate out of the block locally.  This
> can cause you to wind up with a slightly swiss-cheesed id space and it means
> that the ordering of id's only approximates the time ordering of when the
> id's were assigned.  Neither of these is typically a problem.
> On Fri, Feb 25, 2011 at 1:50 AM, Ertio Lew <ertiop93@gmail.com> wrote:
>> Hi all,
>> I am involved in a project where we're building a social application
>> using Cassandra DB and Java. I am looking for a solution to generate
>> unique sequential IDs for the content on the application. I have been
>> suggested by some people to have a look  to Zookeeper for this. I
>> would highly appreciate if anyone can suggest if zookeeper is suitable
>> for this purpose and any good resources to gain information about
>> zookeeper.
>> Since the application is based on a eventually consistent distributed
>> platform using Cassandra, we have felt a need to look over to other
>> solutions instead of building our own using our DB.
>> Any kind of comments, suggestions are highly welcomed! :)
>> Regards
>> Ertio Lew.

View raw message