~/talk

mruby gateway for huge amount of realtime data processing

Talkat RubyKaigi 2017 · 2017-09-18..09-20· [embedded-and-hardware, ruby]
github:naritta
slides:none on file

TreasureData replaces a Rails+Fluentd front end with H2O + mruby gateway and a custom aggregator to handle rapidly growing realtime imports, deploying on AWS auto scaling. Patches add mruby-friendly parallel and asynchronous processing, implemented with mruby async via fibers and tasks plus channel-like primitives so uploads can continue in background. Notes cover mruby C-API pitfalls (string copying and GC) and show microbenchmarks of the new gateway. Patched H2O for parallel mruby handlers

AI-written summary · about

  1. 0:00Introduction
  2. 2:16Treasure Data overview
  3. 6:03Streaming data import challenges
  4. 9:22New system design
  5. 12:20Gateway server role
  6. 15:57Why mruby and H2O extension
  7. 17:29Basic mruby extension usage
  8. 19:24Async HTTP request implementation
  9. 23:21mruby and C extension integration
  10. 26:51Async function implementation
  11. 30:24Parallel HTTP request challenges
  12. 33:43Callback channel idea
  13. 36:40Task function implementation
  14. 41:28mruby extension pitfalls
  15. 44:12References and summary
~/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.