[NineChap Sys] System Design Class 2 - Shuatiblog.com
This class covers database design:
- design data with class and inheritance
- design a user system (Netflix 2015)
- design a payment system (Yelp, BigCommerce 2015)
Example One
design account (login/out) system for our radio.
Step one, scenario
- register, update, remove account
- login/out
- user balance, VIP services
Step Two, necessary
Ask
- total user: 100 million
- daily user: 1 million
predict
- daily active user in 3 month: 10 million
- register percentage: 1%
- daily new register: 100 thousand
more predict
- login percentage: 15%
- average login frequency: 1.2 (ppl may input wrong password 20% of time)
- daily login attempts: 10 million * 15% * 1.2 = 1.8 million
- average login frequency: 1.8 million / 24hr = 21 login/sec
- normal login frequency: 21 * 2 = 42 login/sec
- peak login frequency: 42 * 3 = 126 login/sec
Read full article from [NineChap Sys] System Design Class 2 - Shuatiblog.com
No comments:
Post a Comment