Blog
Engineering writing about decisions actually made, drawn from the real architecture and its documented reasoning.
Why we didn't use Hyperdrive
Workers can reach PostgreSQL over raw TCP. Hyperdrive is a pooling optimization, not a prerequisite — and looking for it surfaced a sharper bug.
- architecture
- cloudflare
- postgresql
Adaptive prefix buckets: how one keystroke becomes ten suggestions
AutoSugges compiles every list ahead of time into 2-to-5 character prefix buckets, so a keystroke is one KV read against pre-ranked results, never a live scan.
- architecture
- search
- compiler
The cache can never come before the meter
AutoSugges enforces resolve, authorize, meter, then cache, in that order, at the type level — a pipeline checking the cache before metering does not compile.
- architecture
- edge
- billing