Engineering notes

How BuildAPI works underneath, what we got wrong, and what we changed. Written by the people who broke it.

Engineering

Tests that fail when you break them

A passing test proves nothing until you have watched it fail for the right reason.

PS Priya Sharma · · 3 min
Engineering

What a fresh install should look like

Correct on arrival, not correct after something repairs it.

PS Priya Sharma · · 2 min
Engineering

A quote and a charge must be one number

The moment those are two implementations, they diverge — and the customer finds out at the card.

PS Priya Sharma · · 2 min
Engineering

The cron that nobody scheduled

Background work that only runs when someone visits is not background work.

PS Priya Sharma · · 2 min
Product

Bound, verified, enforced: three states people read as one

A key's relationship to a domain has three separate properties, and conflating them causes most of the confusion we see.

AP Ashley Parker · · 2 min
Guides

Entitlement tokens, explained

The mechanism that keeps your site up during our outage, and how to use it properly.

JM Jordan Mitchell · · 3 min
Engineering

Pricing in one currency, charging in another

We quote in dollars and charge in naira. Almost every bug we shipped this year lived in that gap.

PS Priya Sharma · · 3 min
Engineering

Designing a refusal message

Most systems tell the user what happened. Good ones tell them what to do.

PS Priya Sharma · · 3 min
Guides

Rotating a key without downtime

The sequence matters. Done in the wrong order, rotation is an outage.

JM Jordan Mitchell · · 2 min

Start building

Lock a key to your domain in about five minutes.

Get started