100-days-of-rust/Week-03/Day-19_URL-Shortener/README.md
2023-03-23 20:52:21 -04:00

18 lines
1013 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## URL Shortener
URL shortening is used to create shorter aliases for long URLs. We call these shortened aliases “short links.” Users are redirected to the original URL when they hit these short links. Short links save a lot of space when displayed, printed, messaged, or tweeted. Additionally, users are less likely to mistype shorter URLs. URL shortening is used to optimize links across devices, track individual links to analyze audience, measure ad campaigns performance, or hide affiliated original URLs.
<p align="left">
<img src="../../assets/url_shortener.png" alt="Rain water trap">
</p>
---
### Constraints
- Given a URL, our service should generate a shorter and unique alias of it. This is called a short link. This link should be short enough to be easily copied and pasted into applications.
- Users should optionally be able to pick a custom short link for their URL.
- URL format must be validated
- URL < 200 characters
- Shortened links should not be guessable (not predictable).