Put Back-of-the-Envelope Numbers in Perspective 00:00:01 Stretch time to see its scale Make half a nanosecond last one full second on an imaginary clock. Suddenly a nearby memory lookup feels slow, a network trip seems enormous, and an ocean crossing lasts years. What is this exaggerated clock good for? 0.5 ns. Let us call it one second. 7 ns: 14 seconds. 100 ns: more than three minutes. 150 µs: three and a half days. The largest jump so far. 10 ms to move the head: 231 days, more than seven months. 150 ms: nine and a half years. The deliberately enlarged clock compares orders of magnitude. The particular timing of a processor, storage device or network route depends on the hardware, workload and physical path. 00:01:06 Forty brief waits can dominate one request Forty reads for one page, with the database in two places. Forty sequential half-millisecond calls contribute twenty milliseconds before other work. Whether that matters depends on the page budget. The database moves 69 ms away. 40 times 69 is 2,760 ms. The code did not change. If no call waits for another, they share one trip: about 69 ms. With the answers in a cache beside the app and one batched read of them, a page needs one trip of 0.5 ms. Repeated round trips add across a serial path. Batching or moving the computation near the data can remove trips entirely, which is different from shaving a little time off each query. 00:02:01 From a letter to retained data One English letter. A short note, or one database row. A photo. A book without pictures. At 5 Mb/s an hour of video is 2.25 GB, so 1 GB is about half an hour. A million 1 MB photos. A million gigabytes. Now storage is a design topic of its own. State whether a storage estimate uses decimal units and whether it includes replicas, metadata, compression and backups. A byte total without a retention interval cannot size a growing archive. 00:02:41 Convert a day carefully Take off five zeros: 10 a second. Exactly 11.6. 100 a second. 1,000 a second. 10,000 a second on average; at three times, 30,000. A real day has eighty-six thousand four hundred seconds. Rounding it to a hundred thousand is a quick mental estimate; when the result is close to a planning threshold, use the actual divisor. 00:03:08 Double rather than memorize a table Ten doublings are about a thousand, again and again. 1,024: almost a thousand. A thousand thousands: about a million. About a billion. This is a GiB, 7% above a GB. Four times a billion. At 1,000 new ids a second it lasts 49.7 days. About a trillion, and the gap has grown to 10%. Binary capacities grow in powers of two. Ten powers of two give a thousand twenty-four, near a thousand, but the relative gap from decimal units accumulates at larger scales. 00:03:49 A page whose reads cross a boundary An order page is quick for the team and slow for customers abroad. 12 reads one after another, 0.5 ms each: 6 ms. A new app server abroad reads the same database, 162 ms away: 12 times 162 is 1,944 ms. One query returns all 12 rows: 162 ms. The few thousand popular products sit in a cache beside the app. Investigate whether repeated reads are local, remote or repeated unnecessarily. A frequently reused answer near the caller removes a different cost from buying a faster distant disk. Recover the original units before committing to a design. A rough scale comparison can reveal the wrong layer to optimize, while only representative measurements can establish a service's actual budget.