If you are a Hector user, TimeUUIDUtils can be used to create Time UUIDs.

https://github.com/rantav/hector/blob/master/core/src/main/java/me/prettyprint/cassandra/utils/TimeUUIDUtils.java


On Mon, Feb 7, 2011 at 2:11 PM, Kallin Nagelberg <kallin.nagelb...@gmail.com
> wrote:

> Maybe I can just use java5's UUID.. Need to research how this is
> effective across multiple clients..
>
> On Mon, Feb 7, 2011 at 4:57 PM, Kallin Nagelberg
> <kallin.nagelb...@gmail.com> wrote:
> > Hey,
> >
> > I am developing a session management system using Cassandra and need
> > to generate unique sessionIDs (cassandra columnfamily keys). Does
> > anyone know of an elegant/simple way to accomplish this? I am not sure
> > about using time based uuids on the client as there a chance that
> > multiple clients could generate the same ID. I've heard suggestions of
> > using zookeeper as a source for the IDs, but was just hoping that
> > there might be something simpler for my purposes.
> >
> > Thanks,
> > -Kal
> >
>

Reply via email to