Back to course home
0% completed
Vote For New Content
For the database selection, why are we proceeding with a NoSQL database? I thoug...
Richard Yuan
Aug 6, 2022
For the database selection, why are we proceeding with a NoSQL database? I thought there is a relationship between the URL and User tables with the UserID field. Wouldn't that qualify as a relationship and therefore require a SQL database be used?
3
0
Comments
Comments
S
Sandeep Kumar3 years ago
Yes, that's a relationship, but in this requirement, there aren't a lot of relationships that we need to maintain. For a very few relationships, we can go for a NoSQL db if it provides a lot more benefits.
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