Loading...
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
What are some future improvements you would make? How would you mitigate the failure scenario(s) you described above?