~/talk

Statistically Optimal API Timeouts

Talkat RubyConf 2019 · 2019-11-18..11-20· [ruby]
links:none on file
slides:none on file

Claims a practical method: capture per-request timings in a proxy, fit a CDF with least squares regression, then solve a constrained optimization with Lagrange multipliers (or a discrete knapsack approximation) using an open source Ruby Maxima library. Works for idempotent, independent retries and often outputs the simple equal-split policy, but fails for dependent retries. Also warns not to use Timeout::timeout for network timeouts and emphasizes dashboards and sufficient sample size before optimizing.

AI-written summary · about

  1. 0:00Introduction
  2. 1:50Inspiration
  3. 3:33Benefits
  4. 4:15Protocol Failure
  5. 5:18How to Use Timeouts
  6. 6:36How to Measure Timeouts
  7. 8:43Mathematical Formulation
  8. 13:49Gathering Data
  9. 14:55Analyzing Data
  10. 16:30Code
  11. 20:48Conclusion
~/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.