Let suppose a 5:1 read-write ration, which means that the system should tolerate 5 times more reads than writes.
lets suppose we have 10000 DAU:
Storage:
The short url record will have the following fields:
Total Record storage: 256 bytes (aprox)
Storage capacity
In this case i will choose a NoSQL database as it will support high write throughput, easily scales horizontally and eventual consistency is required. I'll go with DynamoDB as the records will be accessed by the PK shortUrl and complex queries are not needed
Explain how the request flows from end to end in your high level design. Also you could draw a sequence diagram using the diagramming tool to enhance your explanation...
Explain any trade offs you have made and why you made certain tech choices...
Try to discuss as many failure scenarios/bottlenecks as possible.
What are some future improvements you would make? How would you mitigate the failure scenario(s) you described above?