Shorten URL system

TA: B2C

  * Availability major

  * MAU: 100,000 

Features:

* input long url, get short url 6~8 shorten url

  * upper case + lower case + numbers

  * 62^6 ~ 65,000,000,000

* time storage about the urls will be

  * 6~12 month

Features
* DAU ratio: 15%
* gen 10 per day
* qps: 100,000 * 15% * 10 / 100000
   = 1.5q/s 
   * peak 6q/s

* Storage
  * items: 6 * 30 * 100,000 * 15% * 10 = 27,000,000 
  * item avg length (100 + 8 + 20) * 4
  * tatal storage: 13GB in current user
    * (future growth * 1000 times ~ 13TB) 
Actor
Actor
LB
Backend
Read
RDB
SQL
Write
RO
Cache
Encode
Decode
Sharding
RDB
SQL
RDB
SQL
RDB
SQL

Fault Tolerance

* UX improve
  * fall-back strategies
  * duplication
  * higher cost