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

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -