# Black Friday system design, running live

Source: https://systemdesignsim.com/blueprints/black-friday-budget

Web apps · SDE-3 · Cache reads to fit a fixed peak budget

Eight compute-optimized servers behind the load balancer carry 12,000 requests a second. A cache absorbs 90% of reads, so a primary and two replicas handle the rest. No CDN: at this request rate it alone would cost about ten times the budget.

An illustrative teaching design, not a verified diagram of any company's internal architecture. Traffic, capacity and cost are simulator estimates. [Model and assumptions](https://systemdesignsim.com/methodology).

* Traffic

  12,000 req/sLarge scale

* AWS bill

  $2,054/mo

* p99

  83 ms

* Components

  4

12,000 requests a second at peak with 2% writes. This is a static teaching preset; costs depend on the simulator's current price catalog.

[Open it running](https://systemdesignsim.com/playground?blueprint=black-friday-budget)[Or build it yourself first](https://systemdesignsim.com/challenges/black-friday)

![Black Friday architecture on AWS at 12,000 requests a second](https://systemdesignsim.com/blueprints/black-friday-budget.svg)

Black Friday architecture on AWS at 12,000 requests a second. Scroll the diagram to see every component. The small text under a box is its traffic, instance count or shard count.

## How it works

1. The load balancer spreads the peak across eight compute-optimized API servers.
2. The cache answers most reads before they reach the database.
3. The design omits the CDN because the challenge's request pricing exceeds its fixed budget assumption.

## What each part does

* Users

  12,000 requests a second, with 2% writes.

* API Server

  Eight c7g.xlarge API servers carry the peak traffic.

* Cache

  Cache for common product and page reads.

* Database

  Three database instances handle writes and cache misses.

## What breaks first

The API tier is the first capacity limit as traffic rises.

The eight-server fleet is sized for the stated peak. A larger ramp eventually fills API capacity; measure CPU and request queues before changing instance size or count.

The simulator checks this every build: it runs the design at 12,000 req/s, then ramps traffic to 4x (48,000 req/s) and records which part fails first. In the playground, press Break it to watch the same thing happen.

## Trade-offs

### What it gets right

* A cache reduces database read work during a sharp shopping peak.
* The stateless API tier can scale horizontally.

### What it costs you

* The cache adds an availability dependency and stale-data decisions.
* The fixed fleet has limited room for traffic beyond the preset.

## In the real world

* Retail systems commonly cache product reads and plan capacity for a short sale peak.
* A static diagram cannot describe any particular retailer's internal architecture.

## In the interview

* Separate peak load from daily average before sizing the API fleet.
* Compare CDN delivery cost with the byte and request volume before adding it.

## Run it yourself

The playground opens this design with 12,000 requests a second already flowing. Press Break it, or change one part yourself, and watch which number goes first.

[Open it running](https://systemdesignsim.com/playground?blueprint=black-friday-budget)[Take the challenge: Black Friday](https://systemdesignsim.com/challenges/black-friday)

## Questions people ask

### How does Black Friday work at the system design level?

The load balancer spreads the peak across eight compute-optimized API servers. The cache answers most reads before they reach the database. The design omits the CDN because the challenge's request pricing exceeds its fixed budget assumption.

### What breaks first in a Black Friday design?

The API tier is the first capacity limit as traffic rises. The eight-server fleet is sized for the stated peak. A larger ramp eventually fills API capacity; measure CPU and request queues before changing instance size or count.

### What are the trade-offs of this Black Friday architecture?

A cache reduces database read work during a sharp shopping peak. The stateless API tier can scale horizontally. The cache adds an availability dependency and stale-data decisions. The fixed fleet has limited room for traffic beyond the preset.

### What do interviewers look for in a Black Friday system design answer?

Separate peak load from daily average before sizing the API fleet. Compare CDN delivery cost with the byte and request volume before adding it.

## More in web apps

* [Airbnb search and booking](https://systemdesignsim.com/blueprints/airbnb)
* [Amazon product page and checkout](https://systemdesignsim.com/blueprints/amazon)
* [BookMyShow ticket booking](https://systemdesignsim.com/blueprints/bookmyshow)
* [Dropbox file sync](https://systemdesignsim.com/blueprints/dropbox-sync)
* [Flipkart Big Billion Days](https://systemdesignsim.com/blueprints/flipkart-bbd)
* [Gmail](https://systemdesignsim.com/blueprints/gmail)
* [Google Search](https://systemdesignsim.com/blueprints/google-search)
* [Hello, Load Balancer](https://systemdesignsim.com/blueprints/hello-load-balancer-reference)
* [IRCTC Tatkal booking](https://systemdesignsim.com/blueprints/irctc-tatkal)
* [Pastebin](https://systemdesignsim.com/blueprints/pastebin)
* [Search autocomplete](https://systemdesignsim.com/blueprints/autocomplete)
* [The CTO Budget Cut](https://systemdesignsim.com/blueprints/cto-budget-reduction)
* [The Retry Storm](https://systemdesignsim.com/blueprints/retry-storm-resilience)
* [The Stampede](https://systemdesignsim.com/blueprints/cache-stampede)
* [Three-tier web app](https://systemdesignsim.com/blueprints/three-tier-web-app)
* [URL shortener](https://systemdesignsim.com/blueprints/url-shortener)
* [All blueprints](https://systemdesignsim.com/blueprints)

## One system design problem a week

A real scenario, its constraints, and where the obvious design breaks.

## Now break one yourself.

The first challenge takes about two minutes. No signup.

[Design your first system](https://systemdesignsim.com/challenges/hello-load-balancer)
