Thinking in Numbers: Customers Are Not Traffic

Why millions of customers does not mean millions of requests, and how an FDE turns a big headline number into a peak rate, a design target, concurrency and a storage estimate, step by step.

  • Beginner
  • About 26 minutes
  • Includes an exercise and a knowledge check

The trap We have 1.2 million loans, so it must scale

Sooner or later a customer will say a big number and expect a big architecture. A total count tells you very little about how hard a system works. What matters is how many things happen, how often, and especially at the busiest moment.

A photo of a baseball field and crowd. Example numbers: 45,000 tickets sold for a game; about 30,000 people arrive in the last 45 minutes before the first pitch; that is about 670 people a minute at the gates. The gates are built for the peak rate, not the total.
A stadium never has 45,000 people at the gates at once. Its gates are built for the busiest 45 minutes. (Example numbers.)

Software works the same way. Registered customers are not people online right now. Devices that exist are not devices sending data this second. You need three numbers: the average rate, the peak rate, and how long the peak lasts.

Worked example From 1.2 million loans to a design target

Here is how an FDE estimates the real load for the lender. Every step is an assumption written down, so the customer can correct it. The numbers are fictional but the method is real.

A narrowing list of steps for the fictional lender: 1,200,000 active auto loans; 1,200,000 payments a month, assuming one payment per loan; 40,000 on an average day, about 0.46 a second; about 160,000 in total on the peak day, assuming due dates bunch on the 1st at four times the average; about 28 a second in the busiest hour, assuming the morning bank file holds 100,000 of those payments and must be processed within one hour; about 83 a second as a design target with three times headroom. A storage panel: at about 1 KB per record, the raw records are 1.2 GB a month, 14.4 GB a year and about 101 GB for seven years; with indexes and database overhead about 200 GB; with a replica and four weekly backups about 1.2 TB. Conclusion: a few dozen a second is small; the hard part is being exactly right.
Show the math, label every assumption, and let the customer correct you. Average, peak day and peak hour are three different numbers.
StepAssumption and calculationResult
Payments a monthAssume one payment per loan: 1,200,000 × 11,200,000
Average day1,200,000 ÷ 30 days40,000 (about 0.46 a second)
Peak day (whole day)Assume due dates bunch on the 1st, so the peak day is about 4 × the average dayabout 160,000 in that day
Peak hourAssume the bank's morning file holds 100,000 of the peak day's payments and must be processed within one hour: 100,000 ÷ 3,600 secondsabout 28 a second
Design targetAssume 3 × headroom for growth and bad days: 27.8 × 3about 83 a second
Raw record storageAssume about 1 KB per record: 1,200,000 × 1 KB × 12 months × 7 yearsabout 101 GB (100.8)

Do not mix up the peak day and the peak hour. 160,000 is everything that arrives on the busiest day. 100,000 is the part of it that comes in one morning file with a one-hour deadline. They are separate assumptions, so check them separately: ask the bank how big the morning file really is, and ask finance when the results are needed. If the file turns out to hold all 160,000, the peak hour becomes about 44 a second, still small.

Raw is not the whole story How much storage, really?

The 101 GB is raw record storage: the payment rows themselves. A real system stores much more than that. In an architecture discussion, say which of these three numbers you mean:

LevelWhat it includesLender estimate (example assumptions)
Logical (raw) dataThe records themselvesabout 101 GB over seven years
Physical database storagePlus indexes, row overhead and free space inside the databaseabout 200 GB, assuming overhead roughly doubles it
Operational storagePlus a standby replica, backups, audit history and logsabout 1.2 TB: 200 GB primary, a 200 GB replica and four 200 GB weekly full backups

Say the retention assumption out loud. The 1.2 TB keeps only the last four weekly backups, one month of history, and leaves out audit history and logs. It is not a seven-year backup plan. If the lender must keep monthly backups for seven years, that adds 84 more copies of the database and storage grows many times over, which is why long-term copies usually go to cheaper archive storage.

The operational number is about twelve times the raw one, and it is still modest for a modern database. The lesson is not the exact multiplier, which depends on the system. It is to ask what is included before anyone compares storage numbers or prices.

Three different numbers Throughput, latency and concurrency

So far every number has been a rate: how much work per second. Two more numbers matter as soon as you design a real system, and people mix all three up all the time:

TermWhat it measuresLender example
ThroughputWork completed per unit of timeabout 28 payments a second in the peak hour
LatencyTime taken for one operation, start to finishabout 0.2 seconds to post one payment (assumed)
ConcurrencyWork in progress at the same momentabout 28 × 0.2 = about 6 payments being posted at once
A timeline of requests drawn as bars. Each bar starts when a request arrives and its length is the latency, half a second. Requests arrive at 100 a second, so a vertical line at any moment crosses about 50 bars: that is the concurrency. A formula panel: concurrency is about throughput times latency. Example: 1,000 users submit within 10 seconds, that is 100 requests a second; each takes 0.5 seconds; so about 50 are in progress at once. If latency doubles to one second because a downstream system is slow, the same throughput means about 100 in progress, so a pool of 50 database connections runs out.
Concurrency is roughly throughput × latency. When latency rises, the work in progress rises with it, even if no extra users arrive. (Example numbers.)

Here is a worked example. If 1,000 users submit a form within 10 seconds, about 100 requests a second arrive. If each takes 0.5 seconds, about 50 are in progress at once (100 × 0.5). This rule of thumb is called Little's Law: average work in progress = average arrival rate × average time in the system.

Little's Law is about averages, not every second. It holds for a reasonably steady workload measured over a long enough period. Requests arrive in bursts, so at one moment there might be 35 in progress and at another 70. Use the average to size the normal load, then leave headroom for bursts, just as the lender's design target leaves three times headroom.

Why it matters Different numbers, different architecture

Now compare a factory from the Industrial IoT environment: 50,000 machines, 10 sensors each, one reading a second. That is 500,000 readings every second, all day, about 18,000 times the lender's busiest hour.

Bars on a logarithmic axis from 1 to 1,000,000 events a second: the lender at its busiest hour, 28 a second; with headroom, 83 a second; a factory with 50,000 machines and 10 sensors each, 500,000 a second. The lender leans on database transactions and exact rules; the factory leans on streaming and time-series storage.
Each mark on the axis is ten times the last. The factory is a different kind of problem, not a bigger version of the same one.

This is why the program never reuses one architecture everywhere. The numbers come first, and the architecture follows them. But throughput is only one number. Even at 500,000 readings a second, the factory design depends on the rest of its requirements:

RequirementLenderFactory
OrderingPayments for one loan must post in orderUsually only per sensor, by timestamp
Event sizeAbout 1 KB, with many fieldsTiny: a sensor ID, a time and a value
RetentionEvery record for seven yearsRaw readings for days, then summaries per minute
LatencyBefore the analysts start at 8 a.m.Seconds, to stop a machine before damage
Data loss toleranceNone: every cent must be accounted forAn occasional missed reading is acceptable
ProcessingExact matching rules and an audit trailRolling averages and alerts on thresholds
ConsumersReconciliation and finance reportsDashboards, alerts, maintenance and analytics teams

Each row can change the design on its own. If the factory had to keep every reading for seven years with no loss, its design would change far more than a faster stream could fix.

Question to askWhy it matters
How many events at the busiest minute or hour?You build for the peak, not the average
How long does the peak last?A one-hour burst and an all-day flood need different designs
How big is each record?Drives storage, network and cost
How long must data be kept?Financial records may need years; sensor data may be summarized
How fast must results appear?Seconds, minutes or next morning are very different systems
What happens if it is down for an hour?Sets availability and recovery targets

Practice Estimate a second scenario

Practical exercise

The online payment portal

The same lender has about 2 million borrowers with online accounts. Use these assumptions (they are made up for this exercise) and estimate the peak load on the portal.

  1. About 30% of borrowers pay online each month, and most pay in the three days before the 1st.
  2. Assume half of that month's online payments happen in those three days, and the busiest hour of each of those days holds 10% of that day's payments.
  3. Work out: online payments a month, payments on each of the three busy days, and payments a second in the busiest hour.
  4. Each online payment takes the portal about 0.4 seconds. How many are in progress at once in the busiest hour?
Show the worked answer
  • Online payments a month: 2,000,000 × 30% = 600,000.
  • In the three busy days: 600,000 × 50% = 300,000, so 100,000 a day.
  • Busiest hour: 100,000 × 10% = 10,000 payments in one hour.
  • Per second: 10,000 ÷ 3,600 = about 2.8 a second, about 8 with three times headroom.
  • In progress at once: 2.8 × 0.4 = about 1.1, so usually one or two payments at a time. Even with headroom, about 3.
  • Conclusion: 2 million accounts produce under 3 payments a second at the peak. Reliability and security matter far more here than raw scale.

Worksheet

Workload estimation sheet

Use it for the portal exercise above, then reuse it on every engagement. Put one assumption in each row, write where every number came from, and add rows for anything this sheet does not cover. Answers stay in this browser; Download CSV saves them.

LineHow to get itYour valueSource or assumptionRemove
Accounts or customersFrom the customer, with the date it was counted
Share who act each monthFrom history; label it an assumption if nobody measured it
Events a monthAccounts × share
Share in the busy windowFor example, the three days before the 1st
Events on a busy dayEvents in the window ÷ days in the window
Busiest-hour shareShare of the busy day in its busiest hour
Events in the busiest hourBusy day × busiest-hour share
Peak a secondBusiest hour ÷ 3,600
HeadroomA multiplier you agree with the customer, for example 3
Design target a secondPeak a second × headroom
Time per event (seconds)Measured, or an assumption to test
In progress at onceThroughput × time per event (an average)
Record size (bytes)From a sample of real records
Retention (years)From policy or regulation
Raw storageEvents × record size × retention
Operational storageRaw × indexes, replicas, backups and audit history
Your answers stay in this browser

5 questions

Check your understanding

1. A customer has 5 million registered users. What do you know about their traffic?
2. The lender's morning file holds 100,000 payments that must be processed within an hour. About how many payments a second is that? Round to a whole number.
3. Why does the lender need exact database transactions more than a big streaming platform?
4. A service handles 200 requests a second and each takes 0.25 seconds. About how many are in progress at once?
5. A vendor quotes storage for 101 GB. What should you ask first?
Answer every question to submit.

What you can do now

  • Explain why a total count is not traffic.
  • Turn a headline number into average rate, peak rate and design target, with each assumption labeled.
  • Tell throughput, latency and concurrency apart, and estimate concurrency.
  • Estimate raw, physical and operational storage.
  • Explain how throughput and other requirements lead to different architectures.