~/talk

Backend API Design for SREs

Talkat SREcon22 Asia/Pacific · 2022-12-07..12-09· [api-design, distributed-systems]
links:none on file
slides:none on file

Good backend API design reduces operational toil and prevents false SLI drops by using clear error classes, predictable IDs, and client-friendly flows. Use nanoid for short high-entropy IDs and enable autocompletion with two characters so tracing and debugging across services is fast. Decide sync vs async up front (aim for async if operations can exceed 30 seconds), return operation IDs for polling, map 4xx vs 5xx for SLIs, document valid ID/name combinations, and dogfood the API via a CLI and integration tests.

AI-written summary · about

  1. 0:00Intro
  2. 0:50Backend API design
  3. 3:17Naming
  4. 14:28User and Infrastructure Errors
  5. 18:02Documentation
  6. 19:51Test your API
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.