~/talk

API Optimization Tale: Monitor, Fix and Deploy (on Friday)

Talkat RailsConf 2021 · 2021-04-12..04-15· [frontend-architecture]
slides:none on file

Migrating a billing client from REST to GraphQL, the team adds feature flags, fallbacks and custom request instrumentation that logs method, args, stacktrace, latency and errors. A bad parameter-slicing change causes full-table loads and a production outage with 20× CPU spike and 50× memory increases. Fixes include batching/preloading to eliminate N+1 calls, using GraphQL to fetch 4 instead of 40 fields, adding jitter and Sidekiq rate limiting, and choosing a quick DB-field lookup over a Kafka projection; deployments stay guarded by CI and easy rollback.

AI-written summary · about

  1. 0:00Start
  2. 7:54EXTRACTION: GRAPHQL
  3. 12:35FLOOD OF REQUESTS
  4. 15:23FLOOD OF DB QUERIES
  5. 30:32FREQUENTLY NEEDED DATA
  6. 42:58NIHIL NOVI SUB SOLE
~/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.