~/talk

Ruby HTTP Clients Comparison

Talkat RubyConf 2012 · 2012-11-01..11-03· [ruby]
links:none on file
slides:none on file

Survey of 16 libraries with a public matrix and runnable tests shows concrete tradeoffs: benchmarks (200B, 24MB) reveal em-http-request and curb (multi) win raw throughput, keep‑alive drastically helps small transfers, and parallel APIs beat synchronous loops. Several gems default to SSL verify_none unless explicitly configured, cookie handling is inconsistent (use mechanize for browser‑style cookies), and many wrappers expose adapter choices (faraday/httpi). Matrix and scripts are available at the provided URL for reproduction.

AI-written summary · about

  1. 0:00Intro
  2. 3:31Ruby HTTP Client libraries
  3. 4:52HTTP client libraries I didn't evaluate
  4. 5:55Evaluation Axis
  5. 6:44Project Stats
  6. 8:20sync API (1/5) - Client instance
  7. 8:51sync API (2/5) - Client class
  8. 11:35async API(2/2) - Polling
  9. 12:16parallel API - curb
  10. 13:51Compatibility
  11. 15:00Connection features
  12. 15:113 types of HTTP connections
  13. 16:56Keep-Alive in em-http-request
  14. 17:26Pipelining in em-http-request
  15. 18:21NO verification by default?!
  16. 22:20"Cross-site Cooking" bug in httpclient
  17. 24:42Streaming upload/download
  18. 26:36Development Support
  19. 29:26Replayable log
  20. 30:17Advanced features
  21. 33:21Testing your client
  22. 34:10Performance Comparisons
  23. 39:53My Recommendations
  24. 47:00sync API (4/5) - Include & Customize
~/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.