~/talk

API Performance A journey down the rabbit hole

Talkat OpenInfra Summit Berlin 2022 · 2022-06-07..06-09· [api-design]
links:none on file
slides:none on file

A real investigation finds the bottlenecks: a table grows from ~20 to 58 columns with only a few indexes so queries scan too much, RBAC policy checks run twice during a transition causing 7 checks → 14 checks per node, and many in-memory object copies run inside loops. Simple instrumentation—print timestamps and a tiny timing script (benchmark folder in tools) plus a non‑voting CI job that logs results—measures each stage: 1.9s → 11s down to 1.96s for 1,000 nodes, yielding about 96 nodes/s rising to 540 nodes/s after adding indexes, front‑loading/caching policy decisions, and selecting fields through the stack.

AI-written summary · about

  1. 0:00Introduction to api performance
  2. 1:04Identifying performance issues
  3. 2:41Analyzing object compatibility
  4. 4:24Impact of policy checks
  5. 5:57Optimizing queries and results
  6. 9:25Measuring and benchmarking
  7. 10:50Best practices for operators
  8. 13:30Developer guidelines
  9. 15:34Q&A and concluding remarks
~/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.