I\'ve generally implemented sequence number generation using database sequences in the past.
e.g. Using Postgres SERIAL type http://www.neilconway.o
There are a few strategies; but none that i know can be really distributed and give a real sequence.
memcached has a fast atomic counter, in the vast majority of cases it's fast enough for your entire cluster.personally, i'd lean to UUIDs, or memcached if i want to have a mostly-contiguous space.