Skip to the guide

Latency numbers and powers of two

BeginnerConcept3 pages

Some numbers come up in every design. They tell you how long it takes to read memory, a disk or a server on the other side of the world, and how big a kilobyte or a terabyte really is. You don't need them to the decimal place. What you do need is a sense of which things are a thousand times slower than others, because that's what decides where your data should live.

Sugar for your tea

Say you're making tea and need sugar. If the jar is on the shelf next to you, getting it takes a second. If you've run out, you walk to the corner shop, and that takes fifteen minutes. If the corner shop is out too, the big supermarket across town is a trip of an hour and a half. And if that's out as well, you order from a warehouse in another country and wait two or three weeks.