Back to course home
0% completed
Vote For New Content
Should the URL table UserID column be a UUID instead of int to match other interfaces?
vproman
Sep 10, 2024
The URL table diagram shows the UserID is an int The User table diagram shows the UserID is a UUID
The interface definition shows the user_id parameter is a String, which suggests the id is a UUID and not an int
Given the above, should the table diagram show the URL table's UserID field is also a UUID? If not, why not?
0
0
Comments
Comments
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