Examples of Resource Estimation 00:00:01 A timeline amplifies a write A timeline, a link shortener and a streaming service can all claim a million customers. One labours over fan-out, another over lookups and another over moving video bytes. The customer count cannot identify which one needs help. 5 billion a day: 58,000 a second, 174,000 at peak. 500 million a day: 17,400 a second at peak, past one database. 500 GB a day is 913 TB in five years; three copies make 2.7 PB. 100 posts of 1 KB: 46 Gb/s on average, 139 at peak. Reads and writes together are 191,000: 273 machines and a spare. Count the delivery or lookup work downstream of the user action. A popular author can turn one modest post into a large fan-out without increasing the publication count by more than one. 00:01:09 Create and follow are different rates 100 million new links a month, read a hundred times each. In the link-shortener example creation averages about forty per second. That modest write rate alone does not describe the much busier path that follows existing links. 4,000 a second, 12,000 at peak: a cache takes most of it. Ten years hold 12 billion. 6 TB, or 18 TB with three copies. Six characters already count far enough. Seven keep random codes rare and hard to guess. A link shortener may create relatively few links and serve many redirects for each. Storage growth follows the creation path, while a hot destination can dominate read traffic. 00:01:58 People multiplied by a bitrate Bytes in are small, bytes out are enormous, and one given fact does not fit. 1 million viewers times 5 Mb/s is 5 Tb/s: five hundred 10 Gb/s cards. Copies near the viewers send the bytes. Our storage sends each video to them only a few times. 10,000 times 1 GB times 5 qualities is 50 TB a day, 18 PB a year. Real lower qualities are smaller, so this is an upper bound. 10 TB a day is 116 MB a second, about 930 Mb/s. 100 million hours a day are 4.2 million viewers on average, 12.5 million at peak: 62.5 Tb/s. A million simultaneous viewers at five megabits per second require about five terabits per second of delivered payload before overhead. Edge caching changes origin demand more than it changes the network needs of the viewers. 00:03:13 A message has recipients as well as a sender 500 million users, 50 messages each, 100 million connected. 25 billion a day: 290,000 a second, 870,000 at peak. If all go to groups of ten, each is delivered nine times: up to 7.8 million a second. 100 million connections at 70% of 100,000 each: 1,429 and a spare. 25 billion times 100 bytes is 2.5 TB a day. 5% with 200 KB is 250 TB a day: 99% of all bytes. Five years would be 456 PB. Keep images 30 days: 7.5 PB at any time. A day's send volume becomes a higher delivery workload when groups and devices multiply the number of recipients. Connection count is a third quantity and deserves a separate estimate. 00:04:20 The sale has a clock A total that fits, with one row that does not. 1 billion a day is 11,600 a second. Ten times average: 116,000 a second. 2 million waiting shoppers, a request every 10 seconds: 200,000 a second. 580 a second in the sale. One database is enough for the total. Each order locks the stock row for 5 ms: 200 a second. This is the limit. People arrive when the event opens, not evenly across the day. Admission can change the rate of attempts that reach the scarce inventory row without changing how many customers are waiting. 00:05:03 Look for the expensive boundary Five systems with similar sums, limited by different things. Many reads, each gathering a hundred posts. One cache and it is done. Bytes out, and facts to check. Connections, deliveries and media kept. One product at noon. When two examples have similar averages, compare their fan-out, payload size and burst shape. Those terms often explain why a seemingly smaller product needs a much more demanding architecture. Name the unit that reaches the expensive resource. A post, a redirect, a message and a second of video impose different work even when the same person generates them.