URL Shortener
URL Shortener
Design a URL shortening service. The design should cover:
Functional Requirements:
- Convert long URLs to short URLs.
- Convert short URLs back to their original long URLs.
Non-Functional Requirements:
- Retention Policies: Mappings must be persisted for 3-5 years.
- Scalability: The system must handle a large number of requests.
- Availability: The system must be highly available.
Focus on the high-level design and database considerations for long-term data persistence.
AI interview prep
Core dilemma
Balancing the need for extremely high read throughput (for URL redirection) with efficient, long-term storage and retrieval of URL mappings, while ensuring high availability and scalability.
3 tradeoffs and 3 stress tests locked
Interview prep
Unlock the interviewer X-Ray rubric, tradeoff matrix, stress tests, clarifying questions, and key concepts.
URL Shortener
URL Shortener
Design a URL shortening service. The design should cover:
Functional Requirements:
- Convert long URLs to short URLs.
- Convert short URLs back to their original long URLs.
Non-Functional Requirements:
- Retention Policies: Mappings must be persisted for 3-5 years.
- Scalability: The system must handle a large number of requests.
- Availability: The system must be highly available.
Focus on the high-level design and database considerations for long-term data persistence.