Back to course home
0% completed
Vote For New Content
With regards to System APIs, don't we also need a "getURL(url_key)" ? We have sp...
Aaron Rosenzweig
Feb 21, 2022
With regards to System APIs, don't we also need a "getURL(url_key)" ? We have specified create and delete but we also need a way to fetch our shortened URL :-)
1
0
Comments
Comments
Design Gurus4 years ago
Yes, we should have a getURL() API.
J
Joy Dorairaj4 years ago
In summary we need
- Create URL
- Redirect URL
- Retrieve URL
- Delete URL
- Modify (nice to have)
J
Jordan Starr4 years ago
Why redirect and retrieve? How do you see these as different? I'd think the inputs for both are the short URL and the output for both would be the long URL.
On this page
- Why do we need URL shortening?
Try it yourself
Designing URL Shortener (video)
- Requirements and Goals of the System
- Capacity Estimation and Constraints
- System Interface Definition
- Create Short URL API
- Redirect API
- Analytics API
- URL Management API
- Delete Short URL API
- Database Design
- Basic System Design and Algorithm
a. Encoding actual URL
b. Generating keys offline
- Data Partitioning and Replication
- Cache
- Load Balancer (LB)
- Purging or DB cleanup
- Telemetry
- Security and Permissions