Shrynk - A simple implementation of a URL shortener similar to bit.ly, tiny.url, etc. Users can create and manage multiple URLs. The application provides a short url, which can be used to access the desired website.
The program should not allow for multiple short URLs of the same encoding to exist in the database. This issue is taken care of the UNIQUE Constraint, but since using MD5 and B64. MD5 for a particular string is the same. Since using the first x characters conflicts may occur.
To fix this issue:
First, check if DB contains the generated URL.
If it contains, add a bias value. Generate a new URL.
This could be a monetization feature like paid users to get plans where they generate numerous shortened URLs until a limit and keep them for a specific time.