Grow a design 00:00:01 Record the reason for each version The library's first branch can book a seat with one service and one database. Before adding a queue, a region or a search engine, make that tiny design fail in a specific way. What changed for its readers? One service and one database, with a unique rule on seat and slot. Correct from the start. At 9:00, 20,000 readers refresh every 4 seconds: 5,000 map reads a second. Cache the map for two seconds. 5,000 people want 80 seats in one building. A waiting room lets them in at a rate the database can serve. No target fails. Name the next limit: a single region. A rush of readers can justify a brief display cache. Competition among thousands of buyers for a few seats can justify admission control. Neither replaces the unique claim on seat and time. 00:00:58 The bus tracker meets the morning bell 50 buses and 2,000 parents: 10 writes and 200 reads a second. Every read checks the parent's permission. A city: 100,000 parents every 10 seconds is 10,000 reads a second, our planning line for one database. Keep the newest position in Redis. Only history and permission misses reach the database. The only database stops at 7:45. A restore takes hours; 99.9% allows 43 minutes a month. A standby with tested, automatic failover. The live view carries on from Redis meanwhile. Targets are met. No shards, no bus, no second region. A failover replica and a position cache address different failure modes. Make sure a fallback preserves permissions and tells a parent the observation age when fresh tracking cannot be supplied. 00:01:53 Choose the smallest repair that meets the target Recipe search takes 4 seconds. The target is half a second. The times are from an example test. Ask only for the first 20 results and fewer columns. 2.5 seconds, not enough. A full-text index inside PostgreSQL. 0.2 seconds, under the target. Not needed, so not bought. Not needed yet. It would be, for spelling help and ranking. A narrower query or an index in the existing store may solve the demonstrated delay. Measure the actual search workload before introducing a second search system with its own update and recovery path. 00:02:33 Try removing a component Kafka, a search engine, a database with a text index, and a CDN for photos. Writes are 0.1 a second and nobody else reads them. No target fails. It goes. The index answers in 0.2 seconds. No target fails. It goes. 10 Gb/s of photos hits one place. The page target fails. It stays. Four boxes, and a reason for each. Remove hypothetical pieces one at a time and trace the same request. A content delivery network that absorbs the site's dominant photo traffic can earn its place even when a separate message broker does not. 00:03:12 Know when more growth would be speculation 600 page reads a second on one database planned for 10,000. Stop: 6% used. Grow: a standby that has the post before we confirm. 91 GB of recipe text after five years. The target moved from 10 seconds to 2 for 100,000 parents. Grow: polling would be 50,000 a second. Push instead. Choose whether to grow based on the first unmet requirement. A system can fit its data on one database and still need a better answer to a disk failure or a sudden burst of readers. Every component that stays should protect a named promise under stated conditions. If removing it breaks no current promise, keep that observation alongside the condition that would make you bring it back.