Thursday 7 January 2016

Design '秒杀'

1 Cases:

Case 0: A buyer searches product list.
Case 1: A buyer makes an order by clicking the "Order" button.
Case 2: A buyer makes an order by frequently clicking the "Order" button.
Case 2: A buyer makes an order by sending HTTP requests using software.

2 Constraint:

Assuming the number of active buyers in the day is 100 Million Buyers.
Assuming the number of buyers during a peak second is: 100 Million Buyers / (12 * 3600) * 10 = 23150 Buyers. Assuming each buyer requests for 1 product in the peak second, there are 23150 requests per second.

Assuming that there are 10 Million products.

3. Data

Product
(Database: MySQL)

Transaction
(Database: MySQL)

4. System


No comments:

Post a Comment