Skip to content

Track cheat sheet

API & data design cheat sheet

Turning boxes on a diagram into endpoints and tables: calls per screen, lists, contracts with old apps, and operations that outlast a request.

Key concepts

One screen, many calls
Every request pays a fixed cost, so a screen made of many small calls costs far more than one.
Lists that never end
A list without a limit costs as much as the biggest customer's data, and one customer can fill the fleet.
The field you changed
Mobile clients cannot be updated, so every response shape is a promise to every installed version.
Did it go through?
A timeout leaves the outcome unknown, and status checks forwarded to a slow system make it slower.

Decision rules

  • Shape an endpoint for each heavy screen; watch calls per screen with every release.
  • Page every list from day one: server-enforced limit, opaque cursor on an indexed key.
  • Additive changes only; tolerant readers; new versions for real breaks; remove fields last.
  • Accept with 202 and a status URL; answer status from your own record; idempotency keys; Retry-After.

Common traps

  • One endpoint per table, and app releases that quietly add calls.
  • GET /orders returning everything, or deep ?page=N offsets.
  • Renaming a field because the latest app was updated too.
  • Holding requests open on a slow dependency, and a status call that asks it again each time.

Lessons and boss fights

  1. One screen, many calls · 3 min
  2. Lists that never end · 3 min
  3. The field you changed · 3 min
  4. Did it go through? · 3 min

Real outages on this track: Quiet Saturday, loud Monday · Crash on launch, no release · Did it go through?

BuildBreak · API & data design · each line comes from its lesson, where the sources are linked.