I have some questions about this design question. The solution mentioned a lot of new questions but no solutions for that. Does anyone have some ideas?
For example:
Encoding actual URL
Since we only have space for 8 characters per short key, how will we choose our key then? We can take the first 6 (or 8) letters for the key. This could result in key duplication.
1 What’s the solution of this issue?
What if parts of the URL are URL-encoded? e.g., http://www.educative.io/distributed.php?id=design, and http://www.educative.io/distributed.php%3Fid%3Ddesign are identical except for the URL encoding.
2 What’s the solution of this issue?
3 How do we support custom aliases in Encoding actual URL solution or Generating keys offline solution?