Loading...
Daily users: 1 million / day
Storage capacity: 1 url = 50 bytes average
1000 new urls a day = 50kb per day, 1.5 mb per month, lets say 100 mb per 5 years shall suffice
POST /alias [URL] -> {url: "http://url123", alias: "abcd"}
GET /alias/abcd -> {url: "http://url123", alias: "abcd"}
Describe the overall system architecture. Identify the main components needed to solve the problem end-to-end. Use the diagramming tool to create a block diagram.
SQL will be a good solution because our data is a relation by nature (relates URL and its alias), very natural
table alias{
url: varchar
alias: varchar
}
No need for microservice architecture
1 monolith application is enough: 2 REST urls