HTTP Programming with mruby
summary
Claims production use of mruby at scale with a single binary packaging and mrb-gem workflow integrated into nginx+mruby to replace mixed-language middleware. Describes a concrete mcasd data-sharing service implemented in Ruby, connection pooling via mruby init hooks, Docker build for nginx binaries and Puppet deployment. Reports test tooling using mrbmtest with unit runs 3× faster than C tests and per-test time around 7 microseconds.
AI-written summary · about
chapters (8)
- 0:00Start
- 2:43I'm from the Ruby core team We are working on the next version of Ruby, 2.3.0, now. However, the main feature is under "T80" status. Some libraries will be omitted from stdlib such as rake, net-telnet, etc..
- 11:07Introduction to ngx_mruby "ngx_mruby is A Fast and Memory-Efficient Web Server Extension Mechanism Using Scripting Language mruby for nginx."
- 18:12Issue of connection leak and fd open cost We tried to connect memcached at each request using
- 25:24Advantage of mruby testing Rapid!
- 25:45Deployment strategy We need to prepare following things for production use: • Build target binary ngx_mruby in production environment
- 27:09Next challenge .mruby binary can have different library from one in production. . For continuous Integration, we need to prepare cross-compile or live compile environment
- 28:04cross-compile and I mruby supports cross-compile configuration We made
related talks
37mBuilding maintainable command-line tools with MRuby
26mNginx + Mruby. Features and use cases
36mmruby: AltRuby
29mEvaluate Ruby Without Ruby
26mmruby: a Packaging Story Filled with Freedom
35mmruby: a Packaging Story Filled with Freedom
32mBuilding CLI Apps for Everyone
40mmmm..mruby, or why yet another Ruby implementation
