~/talk

On API Optimization

Talkat RubyConf Philippines 2018 · 2018-03-15..03-17· [api-design, ruby-on-rails]
links:none on file
slides:none on file

A live API goes from ~5000 ms average to sub‑1s by following a strict workflow: get a baseline, profile with New Relic and a local object profiler (stackprof style), inspect DB with a SQL query tracer, find one application method repeatedly calling an external Google currency conversion, and replace it with a cached lookup and a single DB result. The fix includes added tests, load checks and regression monitoring and measurably cuts median and p95 latencies to acceptable levels.

AI-written summary · about

  1. 0:00Introduction and speaker background
  2. 1:14What is API optimization
  3. 3:09Understanding API structure and bottlenecks
  4. 5:18Finding the root cause of API slowness
  5. 7:30Tools for profiling and monitoring APIs
  6. 10:45Profiling with New Relic and other tools
  7. 12:54Common performance pitfalls and quick wins
  8. 15:24Avoiding major changes for minor gains
  9. 16:50Library performance and third-party dependencies
  10. 19:52Testing in production and pre-production
  11. 21:23Automating performance checks
  12. 23:15Case study: Currency conversion API
  13. 26:15Summary and key takeaways
~/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.