Back to course home
0% completed
Vote For New Content
Why does createURL use an api_dev_key instead of a user id or something similar?...
DogBiscuit
Jan 30, 2022
Why does createURL use an api_dev_key instead of a user id or something similar? Also why is the user name needed for encoding?
0
0
Comments
Comments
Design Gurus4 years ago
api_dev_key is system generated ID of the user calling the API. For security and safety reasons, user provided IDs should not be used. Generally, user IDs don't have length constraints; hence they are easier to guess through brakeforce etc.
user_name is optional and c...
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