incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryan King <>
Subject Re: Using a synchronized counter that keeps track of no of users on the application & using it to allot UserIds/ keys to the new users after sign up
Date Fri, 04 Feb 2011 16:44:54 GMT
On Thu, Feb 3, 2011 at 9:12 PM, Aklin_81 <> wrote:
> Thanks Matthew & Ryan,
> The main inspiration behind me trying to generate Ids in sequential
> manner is to reduce the size of the userId, since I am using it for
> heavy denormalization. UUIDs are 16 bytes long, but I can also have a
> unique Id in just 4 bytes, and since this is just a one time process
> when the user signs-up, it makes sense to try cutting down the space
> requirements, if it is feasible "without any downsides"(!?).
> I am also using userIds to attach to Id of the other data of the user
> on my application. If I could reduce the userId size that I can also
> reduce the size of other Ids, I could drastically cut down the space
> requirements.
> [Sorry for this question is not directly related to cassandra but I
> think Cassandra factors here because of its  tuneable consistency]

Don't generate these ids in cassandra. Use something like snowflake,
flickr's ticket servers [2] or zookeeper sequential nodes.



View raw message