System Design
Mid-Level
system_design
Design a URL Shortener
Design a URL shortening service like bit.ly, which takes a long URL and converts it into a shorter, unique URL. You should consider how to handle collisions, how the shorter URL is generated, and what your estimated traffic will be. Discuss factors such as scaling, database choices, and retrieval times.Considerations:
- How will you generate unique keys for the shortened URL?
- How will you store the associations between the long and short URLs?
- How will you handle a large number of requests and potential performance bottlenecks?
Suggested Answer