#systems
4 posts
The 10ms Tick Under Pingora
Cloudflare's nginx replacement burns through millions of timeouts a second, most of which never fire. Their fix: round every deadline to the next 10ms, share one timer across everyone waiting for that slot, and let a single background thread sweep the whole thing. Result: timeouts that cost 4 nanoseconds instead of 107.
TigerBeetle Would Rather Crash Than Guess
Two asserts buried in a financial database. One panics if your hardware lies about time. The other panics if you allocate memory after startup. Together, they're the whole philosophy.
How nginx Tells Time Without Asking
A lock-free time cache lets millions of nginx requests read the current time without waiting for each other. 64 pre-allocated slots, a memory barrier, and a bet that your thread won't sleep for a full minute.
The Bool That Holds Go's Ecosystem Hostage
A single boolean in Go's source code, if flipped from false to true, would instantly break thousands of packages. The Go team put it there on purpose.