Shortify: My link shortener solution

My projects Aug 18, 2019

The 30 March 2019 Google has officially shut down all access to his Url shortener It was a sad news for me because I used it a LOT (more than 1k url shortened). I have then decided to make my own url shortener.

The first step was to find a short domain name that I could use to host my solution. I wanted it to be no longer than the original (5 characters). Fortunately It was not a big deal and I've come up with:

The next step was to design the solution. I have decided to break it into 3 parts:

  • The redirector (PHP): the service that listen on and perform redirection based on URL. (f.e will redirect on The redirector query the database using the code (x435E in the example) and lookup for a redirection.
  • The API (Python/Flask): the interface that listen on used by the frontend application to communicate. Used to CRUD users/links.
  • The frontend (Angular): the application that listen on used by end customers to register account, add link, view analytics, etc...

The application run in a docker swarm cluster to allow load balancing and auto scaling based on ressources usage. (The more users used the applications, the more instance there is)

Like, can be used anonymously (without being authenticated) but therefore analytics won't be available. If the user want to create link anonymously and register later, the previously created links won't be lost! They can be linked to his account automatically if the user hasn't clear his browser cache.

Aloïs Micard

You can contact me on: PGP fingerprint: F733 E871 0859 FCD2