Using short ID generator and duplicates
I want to use friendly URLs in my web application. I prefer generating a short unique ID instead of a GUID. From what I know if I store data using the Add command and the key is duplicated, it will return an error. So my question is whether its safe to use my own unique short ID generator and handle duplicate key exception in the application layer in order to insert the document again with a different key until it's accepted.
I know that the chances to get duplicated, even with a short ID (like the one used by bitly) are rather small, but if If duplicated can't be inserted I have no problem using it, because I prefer a shorter ID than the GUID.