LESSON 01 · Real traffic

How big is your system, really?

Turn a monthly user count into requests per second before choosing any architecture.

SYSTEM VIEW

The decision

Diagram view
Requests—
Writes—
In progress—

Watch 20,000 monthly users become requests per second, then see load that no user count shows.

  1. Users are the app’s 20,000 monthly active users (MAU): people who use it at least once a month. The number sounds large, but the App server never sees a month. It sees requests such as GET /invoices, counted per second.

    Monthly active users
    20,000
    Server sees
    requests a second

    What changed

    • 20,000 MAU
    • GET /invoices
  2. Assume 30% of the 20,000 use the app on a given workday: 6,000 people. Assume each causes 40 requests, counting page loads and API calls. Users now send 240,000 requests a day.

    Show up (assumed)
    30% · 6,000
    Requests each (assumed)
    40

    What changed

    • 6,000 on a workday
    • 240,000 requests a day
  3. Business traffic bunches into working hours, so divide the 240,000 by 8 hours, 28,800 seconds, not by the full day’s 86,400. Requests flow at about 8.3 a second through the App server to the Database.

    Working hours
    8 h = 28,800 s
    Not the full day
    86,400 s

    What changed

    • 240,000 a day → about 8.3 a second
    • Requests reach the Database
  4. Multiply by an assumed 3 for the busiest minutes: the App server peaks at 25 requests a second. If 10% are writes, the Database takes 2.5 writes a second. Replace each assumption with numbers from your logs.

    Peak factor (assumed)
    ×3
    Writes (assumed)
    10%

    What changed

    • ×3 at peak: 25 a second
    • 2.5 writes a second
  5. Concurrency, the number of requests in progress at once, is roughly rate times duration. At 25 requests a second, 50 ms requests leave about 1.25 in progress at the App server; 2-second requests leave 50. Try both request times.

    Concurrency
    rate × duration
    Rate
    25 a second

    What changed

    • In progress: rate × duration
    • 1.25 or 50 at once
    Request time
  6. A user count misses machines: in another example, 1,000 Sensors each report once a second, sending 1,000 writes a second, 400 times the users’ 2.5. Polling partners, bulk imports and midnight jobs do the same. Count the sources of load, not the customers.

    Sensor writes
    1,000 a second
    Users’ writes
    2.5 a second
    Ratio
    400×

    What changed

    • 1,000 sensors
    • 1,000 writes a second
    • 400× the users’ writes

Space plays · ← → step · Home resets

THE IDEA

How it works

Scaling advice often comes from people running very large systems, so work out your own number before borrowing their architecture. Monthly active users (MAU, the people who use the product at least once a month) can sound large, but a server experiences requests per second.

Take an example B2B app with 20,000 MAU. Assume 30% appear on a given workday: 6,000 people. Assume each causes 40 requests, counting page loads and API calls: 240,000 requests a day. Business traffic bunches into working hours, so divide by 8 hours (28,800 seconds), not by 86,400: about 8.3 requests per second. Multiply by an assumed 3 for the busiest minutes and you get 25 requests per second. If 10% are writes, that is 2.5 writes per second. Replace each assumption with numbers from your logs as soon as you have them.

Rate is not the whole load. Concurrency, the number of requests in progress at once, is roughly rate times duration. At 25 requests per second, 50 ms requests mean about 1.25 in progress; 2-second requests mean 50.

The estimate can also argue against simplicity, because user count misses load that people do not generate directly. In another example, 1,000 sensors each reporting once a second send 1,000 writes per second, 400 times the write rate above, from a product with few users. Partner integrations that poll, bulk imports, and scheduled jobs that all start at midnight behave the same way. Count the sources of load, not the customers.

DECISION POINT

Your project-tracking SaaS has 8,000 MAU. Logs show 35% use it on a workday, at about 60 requests each. A teammate wants a load balancer and a second region “because we are growing”. What do you compute, and what do you tell them?

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

Keep in mind

  • Divide business traffic by working hours, not the full day.
  • Concurrency is about rate times duration, so slow requests hurt at low rates.
  • User count misses machine-driven load such as sensors, polling, and imports.
CHECK YOUR UNDERSTANDING

Put it into practice.

1 OF 3
ApplyQUESTION 01

An example internal tool has 12,000 MAU. On a workday 25% use it, each causing 48 requests within 8 working hours. What is the workday average?

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.