Loading...
Assume following:
Number of URLS for 5 year period = 30 million * 5 * 12 = 1.8 billion.
Assume 8 characters/URL. Combination of 62 characters [A-Z, a-z, 0-9]. Gives a total of 3.2 trillion unique URLs
Storage:
Total: ~1TB for 5 years (per database)
Every replication will need 1TB
Table 1: Short URLs
Table 2: User
Database Choice:
Using a NoSQL is good in this scenario because:
CAP Theorem Implications for URL Shortening Service: