coopernurse / node-pool

Generic resource pooling for node.js
2.37k stars 259 forks source link

Worker Threads API #249

Open Kikobeats opened 5 years ago

Kikobeats commented 5 years ago

Hello,

I want to ask if you are evaluating using Node.js Worker Threads API.

Could be awesome just in the future just upgrade the library and unleashed Worker Threads capabilities.

Of course, it doesn't mean sense right now or in a short term since the API is not stable yet, maybe a good consideration to have for a v4 🙂.

Related:

sandfox commented 5 years ago

I haven't looked in to much detail, but from my rough understanding of the API, It's something that could probably be managed/wrapped by this pool in some capacity. I don't know if it's a thing that could done by some higher level wrapper library, or by using component of this, definitely worth some investigation and prototyping!

idan-at commented 5 years ago

that's exactly what was done here: https://www.npmjs.com/package/thread-pool-node

Kikobeats commented 5 years ago

@idan-at why not make a PR over this repository instead of creating yet another project?

idan-at commented 5 years ago

this project is generic and used to create pools of any kind above it see how many projects (pools of some kinds) depend on it here in the dependent tab https://www.npmjs.com/package/generic-pool