~/talk

API Optimization Tale: Monitor, Fix and Deploy

Talkat GopherCon Europe 2023 · 2023-06-26..06-29· [api-design]
links:none on file
slides:none on file

Green build goes to production under a feature flag percent rollout while a fallback to the old direct call keeps users working. The team adds instrument every request logging (method, params, stack) and discovers hotspots: background jobs turn thousands of REST calls into a few heavy ones, then a batched calls cut thousands to ~10 optimization and MySQL preloading fixes most load. GraphQL reduces payloads and client-side filtering. A buggy sanitization default causes DB scans and minute-long queries; fixing sanitization and adding jitter, proper rate limiting and a single-query DB fix instead of Kafka read models stabilizes production.

AI-written summary · about

  1. 0:00Intro
  2. 0:25Why deploy before the weekend
  3. 2:20Incremental approach
  4. 6:00Billing
  5. 7:55Kafka
  6. 11:33The hottest day of 2020
  7. 15:27What I learned
  8. 16:25Final Castle conquered
  9. 20:11Conclusion
~/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.