Design a URL Shortening service like TinyURL

👷‍♂️ In progress: We are writing our own solutions
We find that solutions online don't do justice to real FAANG interviews. So, we're writing our own.
to get these early versions. Unsubscribe anytime.

🙋 Here are some details you should know about this question:

How do you generate a unique short ID?

How do you avoid collisions?

How do we prevent malicious links, phishing, or spam?

Do we rate-limit requests from abusive clients?

Do we support link expiration or deletion?

How do we store logs for analytics?

Should we cache frequently accessed short URLs? Where? (Redis, CDN)

How do we handle hot keys (very popular links)?


← Back to Main Table