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.
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.
| Step | Assumption and calculation | Result |
|---|---|---|
| Payments a month | Assume one payment per loan: 1,200,000 × 1 | 1,200,000 |
| Average day | 1,200,000 ÷ 30 days | 40,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 day | about 160,000 in that day |
| Peak hour | Assume 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 seconds | about 28 a second |
| Design target | Assume 3 × headroom for growth and bad days: 27.8 × 3 | about 83 a second |
| Raw record storage | Assume about 1 KB per record: 1,200,000 × 1 KB × 12 months × 7 years | about 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:
| Level | What it includes | Lender estimate (example assumptions) |
|---|---|---|
| Logical (raw) data | The records themselves | about 101 GB over seven years |
| Physical database storage | Plus indexes, row overhead and free space inside the database | about 200 GB, assuming overhead roughly doubles it |
| Operational storage | Plus a standby replica, backups, audit history and logs | about 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:
| Term | What it measures | Lender example |
|---|---|---|
| Throughput | Work completed per unit of time | about 28 payments a second in the peak hour |
| Latency | Time taken for one operation, start to finish | about 0.2 seconds to post one payment (assumed) |
| Concurrency | Work in progress at the same moment | about 28 × 0.2 = about 6 payments being posted at once |
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.
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:
| Requirement | Lender | Factory |
|---|---|---|
| Ordering | Payments for one loan must post in order | Usually only per sensor, by timestamp |
| Event size | About 1 KB, with many fields | Tiny: a sensor ID, a time and a value |
| Retention | Every record for seven years | Raw readings for days, then summaries per minute |
| Latency | Before the analysts start at 8 a.m. | Seconds, to stop a machine before damage |
| Data loss tolerance | None: every cent must be accounted for | An occasional missed reading is acceptable |
| Processing | Exact matching rules and an audit trail | Rolling averages and alerts on thresholds |
| Consumers | Reconciliation and finance reports | Dashboards, 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 ask | Why 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.
- About 30% of borrowers pay online each month, and most pay in the three days before the 1st.
- 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.
- Work out: online payments a month, payments on each of the three busy days, and payments a second in the busiest hour.
- 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.
| Line | How to get it | Your value | Source or assumption | Remove |
|---|---|---|---|---|
| Accounts or customers | From the customer, with the date it was counted | |||
| Share who act each month | From history; label it an assumption if nobody measured it | |||
| Events a month | Accounts × share | |||
| Share in the busy window | For example, the three days before the 1st | |||
| Events on a busy day | Events in the window ÷ days in the window | |||
| Busiest-hour share | Share of the busy day in its busiest hour | |||
| Events in the busiest hour | Busy day × busiest-hour share | |||
| Peak a second | Busiest hour ÷ 3,600 | |||
| Headroom | A multiplier you agree with the customer, for example 3 | |||
| Design target a second | Peak a second × headroom | |||
| Time per event (seconds) | Measured, or an assumption to test | |||
| In progress at once | Throughput × time per event (an average) | |||
| Record size (bytes) | From a sample of real records | |||
| Retention (years) | From policy or regulation | |||
| Raw storage | Events × record size × retention | |||
| Operational storage | Raw × indexes, replicas, backups and audit history |
5 questions
Check your understanding
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.