Numbers that decide 00:00:01 Twenty million views and one decision A recipe site has one million daily visitors in this example. Each opens twenty recipes. Before Leo buys a cache, he asks what those twenty million daily views would actually demand of the database. A day contains eighty-six thousand four hundred seconds. For quick interview arithmetic, rounding to a hundred thousand gives two hundred views per second. The more accurate average is about two hundred thirty-one. Keep the rounding visible. Three times that rounded average is six hundred per second. A representative test gave this database a budget of ten thousand simple lookups a second. Six hundred fits comfortably, provided one page really costs about one such lookup. 00:00:43 Everybody arrives at nine A library seat map can have a similar daily total and a completely different peak. The bookings open at nine. A day's average has forgotten the one minute when everyone wants the same information. Twenty thousand readers each refresh every four seconds. Evenly spread, that is five thousand map reads a second. Synchronized refreshes can bunch up further. These maps also run a different query from the simple recipe lookup. Suppose five hundred distinct maps are hot. With one coordinated refresh per map every two seconds, the origin would handle about two hundred fifty refreshes per second. A booking still needs an authoritative write, however fresh its map looks. 00:01:23 Bytes accumulate while requests come and go Back at the recipe site, ten thousand new recipes arrive each day with four photographs apiece. That produces forty thousand photographs. Put the text and photos in separate columns before estimating where they belong. At five kilobytes per recipe, the text adds fifty megabytes daily. At five hundred kilobytes per photograph, images add twenty gigabytes daily. These illustrative average sizes matter more than a beautifully precise multiplication. Over eighteen hundred twenty-five days, one copy comes to about ninety-one gigabytes of text and thirty-six and a half terabytes of photos. Replicas, backups, indexes and rewritten images are extra. The two columns suggest different storage choices. 00:02:07 Size the fleet after one loss A separate service needs thirty-five hundred requests a second at peak. Each worker sustained one thousand in a representative test. Four healthy workers average eight hundred seventy-five apiece under even routing. With five workers, the healthy average falls to seven hundred. If one stops, four remain and the average returns to eight hundred seventy-five. Would that satisfy a target of seven hundred per surviving worker? Six workers are needed under that particular policy. Lose one and five each take seven hundred. A different headroom target, slower requests, or uneven traffic changes the answer. Say which condition your calculation is protecting. 00:02:47 Put the unit back on the answer Before adding more database machines, try the recipe photographs. At six hundred page views per second, four half-megabyte photos per page add up to two megabytes per page. What would the network have to carry? Two megabytes per page times six hundred pages per second is twelve hundred megabytes per second, about nine point six gigabits per second before overhead. Browser and edge caches can reduce origin traffic. They cannot make the delivered bytes vanish. Leo can now explain why the text store fits, why event openings need their own estimate, and why the photos warrant a delivery plan. His next calculation should decide something just as concrete.