~/talk

Where is my scalable API?

Talkat LA RubyConf 2013 · 2013-02-21..02-23· [ruby, nodejs]
links:none on file
slides:none on file

Rails JSON API migrates heavy endpoints to Goliath non-blocking IO server, keeps models and controllers but swaps blocking drivers for EventMachine-friendly adapters, and uses Beanstalk job queue plus Varnish and HAProxy with a Couchbase cluster backend. Result: throughput jumps from ~450 to ~1,300 requests/sec, Amazon instances drop from four to one, background work rises from ~40 to ~200–250 jobs/sec, and the refactor proves both cheaper and faster in production.

AI-written summary · about

  1. 0:00Introduction
  2. 3:18What is an API
  3. 5:32Struggling mobile API case
  4. 7:38Scalable API requirements
  5. 8:44Goliath server introduction
  6. 12:26Goliath vs traditional servers
  7. 14:46Reactor pattern in Goliath
  8. 18:50Callbacks vs fibers
  9. 21:23Goliath drivers
  10. 22:52Goliath routing
  11. 24:18Scaling Goliath servers
  12. 27:18Couchbase optimization
  13. 28:44Performance refactoring
  14. 30:12Optimization results
  15. 31:38JMeter performance testing
  16. 32:20Beanstalk job processing
  17. 33:24Goliath in Rails apps
  18. 34:53Goliath support
  19. 35:38Q&A
~/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.