System Design
Senior
system_design
Design a URL Shortener
You're tasked with designing a URL shortening service like bit.ly. The service should accept a URL and return a shorter, unique string. The service should also be able to redirect to the original URL when the short string is used. Consider aspects like scalability, availability, and database management.
Think about how you would ensure that each shortened URL is unique and cannot be easily guessed.
* Handling redirects efficiently,
* Database schema design for storing mappings,
* Ensuring system is load-balanced for high traffic.
Think about how you would ensure that each shortened URL is unique and cannot be easily guessed.
Considerations:
* Handling redirects efficiently,
* Database schema design for storing mappings,
* Ensuring system is load-balanced for high traffic.
Suggested Answer