04.5.2 · Skill in Performance engineering

Throughput

How much work a system can handle per unit of time.

Throughput is about capacity: requests per second, jobs per minute. It sets how many users you can serve and at what cost. Load tests show where it breaks before users find out.

Your status · Throughput

Saved in this browser. Sign in to keep it on every device.It colours this skill's tile on your map.

Why it matters for a product engineer

Throughput is how much work a system can do per second or per minute. It sets how many users you can serve, what each one costs, and what happens on your busiest day. You learn it from load tests, or from an outage. The first way is cheaper.

How to do it

  1. Estimate the load you need to carry: normal and peak requests per minute, jobs per hour.
  2. Do the rough math before you build, with reference numbers for disks, networks and databases.
  3. Write a load test that looks like real use: the same mix of endpoints, sizes and pauses.
  4. Increase the load until something breaks. Note what broke first and at what rate.
  5. Fix that limit, or decide it is far enough away, and write the number down.
  6. Run the test regularly, so a change that lowers throughput shows up early.

Common mistakes

  • Measuring only latency for one user.
  • Load tests that hit a cache and nothing else.
  • Forgetting third-party limits, which often break first.
  • Treating a simulated rate as real demand.
  • Running the test once before launch and never again.

Example

The platforms Mamitsu downloads from used to block it after about five requests in half a minute. In Unai Esteibar’s own load tests, it now takes 3,000 TikTok requests a minute without a block. He tests every day: the person spending the most money on Mamitsu is him. The 3,000 is load he simulates, not traffic he has. (Mamitsu in In practice)

Numbers

Scraping social platforms, before and now

5
Requests before a block
About five, in half a minute
3,000
TikTok requests a minute
In his load tests, without blocks
Daily
Load tests
His own biggest customer

He load-tests every day, so a change that lowers throughput shows up the next morning.

ReportedUnai Esteibar, on the call

Sources: Napkin math (Simon Eskildsen) ↗

In practice

Real products

Resources

1
  • docsStart here
    Napkin math ↗
    Simon Eskildsen · 15 min

    Reference numbers for latency and throughput, so you can estimate a design before you build it.

Tools

1