A flash sale for a million users
Statement
An online store runs a flash sale for 1 000 000 users: the usual 3000 requests/s grow 8× to 24 000 requests/s for 30 seconds. 10 % static, 10 % writes (orders), the rest reads of product pages. This is the capstone: combine everything from the ladder. One load-balancer instance takes 20 000 requests/s — so does one cache instance. Orders must not be lost — push them through a queue and make sure it is empty by the end of the scenario. A cache absorbs the reads, replicas take the rest.
Constraints
- p95 ≤ 300 ms, errors ≤ 0.1 %, queue empty by the end, budget $12 000/month, ≤ 10 instances per node, ≤ 20 blocks.