compared with
Current by Tsvetomir Dimitrov
on Aug 17, 2012 16:44.

Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (4)

View Page History
The best solution is to create own url shortening service, that way we can reserve our  domain.

3. Creating custom algorithm for shortening urls

The idea:

Suppose we have a table with following columns:
* unique auto increment id (long),
* url (string),
* base62 string (string)

The trick, convert unique id to base62 string not the url, and then the url is mapped to the unique id

Base 62 converter code uploaded \!




h1. Storing and Processing