Black Friday: The Whole Day
Hard · system design problem
Doors open at T+150s — and then the payment provider browns out, the catalog cache crashes and a zone disappears, one after another. Instances take two minutes to boot. One plan has to survive all of it.
Your store’s web tier (autoscaling, two minutes to boot) reads the catalog through a Redis cluster (2 nodes; when it cannot answer, reads fall through to PostgreSQL), searches Elasticsearch, calls the recommendations service for every page and charges cards with payment provider A on checkout. At T+150s the doors open: shoppers ×3 for the rest of the day, 60% of catalog reads for one doorbuster product. Then, one after another, things go wrong — as they always do on this day. Provider B is under contract but not wired in; recommendations run on a fixed GPU fleet; PostgreSQL has one read replica. The run is graded on the whole day.
Topics
More
Codelays runs in your browser: turn on JavaScript to use it.