LESSON 02 · Requests per second

Turn daily actions into peak traffic

Convert a daily total into a rate, then account for its busiest periods.

SYSTEM VIEW

The calculation

Diagram view
Swipe or scroll to explore the full diagram
Daily volume is not peak capacityDivide 8.64 million daily reads by 86,400 seconds to get 100 average reads per second. A fourfold peak gives about 400 reads per second.Daily volume is not peak capacity8.64M reads/daydaily volume÷ 86,400seconds in a day100 reads/sdaily average× 4 busy peakobserved or assumed400 reads/sstarting peak targetAdd failure and growth headroom after estimating the expected peak.
Divide 8.64 million daily reads by 86,400 seconds to get 100 average reads per second. A fourfold peak gives about 400 reads per second.
Follow the units from assumptions to a capacity decision.
THE IDEA

How it works

Average requests per second, often written QPS for queries per second, is daily requests divided by 86,400 seconds. Ten million reads per day average about 116 reads per second. Rounding a day to 100,000 seconds gives a quick mental answer of about 100, close enough for a first pass. Keep reads and writes separate because they stress different parts of a system.

Real people are not evenly distributed across the day. The peak-to-average ratio says how much higher the busiest period runs. An assumed fivefold peak gives roughly 580 reads per second. You can cross-check with a different guess: if 20% of daily reads land in the busiest hour, that is 2,000,000 ÷ 3,600 ≈ 556 per second, which roughly agrees. Some products break this model. If a ticket sale draws one million requests in its first minute, the rate is about 16,700 per second, even when the daily average looks small.

A peak multiplier is an assumption until traffic measurements replace it. Size against the burst the product must actually survive, then leave room for a failed instance, growth, or imperfect load balancing. The cost is idle capacity: servers sized for an evening peak sit mostly unused at 4 a.m. Autoscaling groups, such as those on AWS, reduce that waste for peaks that build over many minutes, but new instances can take minutes to start, so they will not save you from a spike that arrives in seconds.

DECISION POINT

A school portal gets 6 million requests a day, and 60% of them arrive between 8 and 9 a.m. What rate should the first capacity discussion use?

Write a sentence or two to unlock the guidance. Committing first is what makes it stick.

Keep in mind

  • Daily total ÷ 86,400 = average requests per second.
  • Peak demand and failure headroom matter more than the average alone.
CHECK YOUR UNDERSTANDING

Put it into practice.

1 OF 3
ApplyQUESTION 01

About how many average requests per second are 8.64 million requests per day?

Choose an answer. You’ll see the explanation once you get it right.

Next lesson

0 of 3 checkpoints answered correctly to complete this lesson.