josdejong / workerpool

Offload tasks to a pool of workers on node.js and in the browser
Apache License 2.0
2.07k stars 146 forks source link

Support binary data #20

Open paulirish opened 7 years ago

paulirish commented 7 years ago

Web workers can pass binary data, but this doesn't work in workerpool.

the stdio option for child processes was added a bit ago, and allows creation of the ipc channel, which can then be leveraged for sending binary data.

additionally there's the new cluster native module which automates a lot of this.

i'd love the workerpool API available on top of either one of these approaches so i can have a robust solution that works on both web and node.

josdejong commented 7 years ago

That would indeed be a great improvement!

Any help getting binary data working in workerpool would be welcome.