Back to System Design Lab

What if a thousand times more people show up

This lab server answers about 3,800 requests a second on one laptop vCPU. Push the load up to a million, arrange the servers, and see which part fills up first and what the bill comes to.

Start from

Second0
Arriving per second9,498
Answered per second9,498
Stock left5,905

How to read it

  • a person's request
  • a bot's request
  • order
  • refused or failed
  • told sold out
  • one tile per server, filled by how busy it is
  • dashed: a server still warming up

Second 0

9,498 requests a second, all answered. p95 5.9 ms.

These 15 minutes

Orders in
6,000
Sold out at second
63
Failed or refused
50.8 million
Worst p95 while busy
10,000 ms
Most servers
5

Second by second

Requests per second
0177 thousand353 thousand0 s225 s450 s674 s899 sarrivingansweredfailed or refused
  • arriving
  • answered
  • failed or refused
API servers
0350 s225 s450 s674 s899 sorderedready
  • ordered
  • ready
p95, ms
101001,00010,0000 s225 s450 s674 s899 s

Arrange it yourself

Load
Door and front desk
Tellers
Queue board
Ledger

More servers do not always mean more capacity

On the laptop, going from 1 to 2 vCPU raised capacity by about 50%. After that it went flat: 4 vCPU, 2 replicas or 3 replicas all stopped at the same place, because they all share one Redis, and Redis runs commands on one thread.

Capacity that passed, requests a second
1,0005,00010 thousand50 thousand123468API servers (total vCPU)
  • measured on the laptop, passed to saturated
  • model, one Redis
  • model, Redis with 16 shards and 16 buckets

Where the numbers come from

Capacity counts requests like the laptop test: take a ticket or check your place, each running two Lua scripts in Redis. Heavier pages or a costlier checkout make these numbers smaller.

ComponentCapacity, requests a secondSourceLabel
API servers, c7g.large9,2161 vCPU laptop dianggap sama dengan 1 vCPU c7g.large, 2 vCPUestimate
Redis, cache.r7g.large9,000redis-benchmark 180 ribu SET/detik dibagi 20 perintah per permintaanestimate
Postgres, db.r7g.large1,800sekitar 1.000 insert per detik per vCPU, 2 vCPUestimate
API servers, laptop5,120laptop, 1 vCPU, langkah jenuhmeasured on the laptop
Redis, laptop7,717laptop, Redis satu thread dipakai bersamameasured on the laptop

No AWS measurements yet. Once there are, they replace the estimates in this table.

What the bill comes to

AWS Jakarta prices as of 20 November 2026, JISDOR rate Rp18,278 per dollar.

One sale, 15 minutes
$30.22Rp552,392
Per order
Rp92$0.005
Per hour, with no visitors
$1.42Rp25,874
Per hour, at the busiest
$512Rp9.4 million
DollarsRupiah
A month (730 hours)$1,153Rp21.1 million
1 year$11,009 – $13,834Rp201.2 million – Rp258.4 million
3 years$30,342 – $41,503Rp554.6 million – Rp813.1 million
5 years$50,570 – $69,172Rp924.3 million – Rp1.4 billion
10 years$101,140 – $138,344Rp1.8 billion – Rp3.2 billion
Months, your own: 24$22,019 – $27,669Rp402.5 million – Rp529.2 million

Low end: 1- or 3-year Reserved prices and today's rate. High end: on-demand prices and a rupiah that keeps weakening as it did from 2021 to 2026, about 4.8% a year.

No cloud TCO tool uses 10 years. One in six IT projects overruns by 200% on average (Flyvbjerg), so read this as a rough floor.

AWS Indonesia bills in rupiah at the invoice-date rate, plus an effective 11% VAT. A month with VAT: Rp23.4 million.

Where one sale's money goes

  • Data out to the internet$18.61
  • CloudWatch logs$9.64
  • Load balancer$1.42
  • Cross-AZ$0.1796
  • Postgres$0.153
  • Redis$0.105
  • API servers$0.0717
  • NAT and IPv4$0.048

Not counted yet: WAF, a CDN waiting room, Shield, data through NAT, and load tests.

What can blow up the bill

  • Autoscaling with no maximum. This sale peaked at 5 servers, but nothing stops the fleet if bots or an error keep it busy: 1,000 servers cost $83.3 an hour. Google Cloud, 2020: Cloud Run up to 1,000 instances plus a recursion, about $72k in a few hours. The cap that actually locks the cost is the maximum capacity, not AWS Budgets, whose data refreshes at least once a day.
  • Bots pass with no rate limit. 20% of this sale's per-request cost ($5.97) comes from bots. Cara on Vercel, 2024: functions with no spend limit, 56 million calls a day, about $96k.
  • Data out to the internet is 62% of the sale's cost ($18.61) at $0.132 per GB. Netlify, 2024: an attack on one MP3 file, 190 TB, a $104,500 bill. Answers that are the same for everyone belong on a CDN.
  • Logs are 32% of the sale's cost ($9.64). CloudWatch Logs in Jakarta is $0.70 per GB, more than N. Virginia ($0.50). One line per request at a million a second is about 690 GB an hour.

AWS Price List, ap-southeast-3, terbitan 18-20 Nov 2026.