title: id autoincrement/sequence emulation with CassandraDB/MongoDB etc
body: <p>I'm trying to build small web-system (url shortcutting) using nonsql Cassandra DB, the problem I stack is id auto generation.</p>
  
  <p>Did someone already stack with this problem?</p>
  
  <p>Thanks.</p>
  
  <p>P.S. UUID not works for me, I do need to use ALL numbers from 0 to Long.MAX_VALUE (java). so I do need something that exactly works like sql sequence </p>
  
  <p>UPDATED:</p>
  
  <p>The reason why I'm not ok with GUID ids is inside of scope of my application. </p>
  
  <p>My app has url shortcutting part, and I do need to make url as short as possible. So I follow next approach: I'm taking numbers starting from 0 and convert it base64 string. So in result I have url like mysite.com/QA (where QA is base 64 string). </p>
  
  <p>This is was very easy to implement using SQL DB, I just took auto incremented ID, convert it to URL and was 100-percents sure, that URL is unique.</p>