【发布时间】:2014-07-05 01:26:29
【问题描述】:
我在 node.js 中有一堆(子)进程需要传输大量数据。
当我阅读手册时,它说它们之间的 stdio 和 ipc 接口阻塞,所以不会这样做。
我正在研究使用文件描述符,但我找不到从它们流式传输的方法(请参阅我的其他更具体的问题 How to stream to/from a file descriptor in node?)
我想我可能会使用网络套接字,但我担心这会产生不必要的开销。
我也看到了这个,但不一样(并且没有答案:How to send huge amounts of data from child process to parent process in a non-blocking way in Node.js?)
【问题讨论】:
标签: node.js stream child-process