How to generate unique (short) URL folder name on the fly...like Bit.ly -
i'm creating application create large number of folders on web server, files inside of them.
i need folder name unique. can guid, want more user friendly. doesn't need speakable users, should short , standard characters (alphas best).
in short: i'm looking bit.ly unique names:
www.mydomain.com/abcdef
is there reference on how this? platform .net/c#, ok help, references, links, etc on general concept, or overall advice solve task.
start @ 1. increment 2, 3, 4, 5, 6, 7,
8, 9, a, b...
a, b, c...
x, y, z, 10, 11, 12, ... 1a, 1b,
you idea.
you have synchronized global int/long "next id" , represent in base 62 (numbers, lowercase, caps) or base 36 or something.
Comments
Post a Comment