Efficient Ruby and Node.js communication/IPC -


i have main node.js api application needs generate pdf file, mature pdf generator prawn pdf, written in ruby.

i need spawn ruby process node.js, pass arbitrary json payload, listen contents returned ruby process, , download in browser.

  1. what efficient method node.js spawn/start ruby process?

  2. how should node.js pass information efficiently ruby process? using json payload, however, ruby have parse this, , don't believe fastest in terms of performance. there more efficient can use pass information between 2 processes?


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -