X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=README.md;h=ce026b148412eb6e445db1b6d6f53775af7bed2d;hb=75876e4c557ce7fcb132929185777e535e244d0d;hp=83ec2122c2bf11bc4aab12c28bf50676f88b5fcd;hpb=f0a76c6efada354533ef1b5b98b7fc3fa266db26;p=poolifier.git diff --git a/README.md b/README.md index 83ec2122..ce026b14 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,10 @@

Node Thread Pool and Cluster Pool :arrow_double_up: :on:

+

+ + Ko-fi +

@@ -199,7 +203,9 @@ We already have a bench folder where you can find some comparisons. Thread pools are built on top of Node.js [worker-threads](https://nodejs.org/api/worker_threads.html#worker_threads_worker_threads) module. **Cluster pools** (FixedClusterPool and DynamicClusterPool) are suggested to run I/O intensive tasks, again you can still run CPU intensive tasks into cluster pools, but performance enhancement is expected to be minimal. -Cluster pools are built on top of Node.js [cluster](https://nodejs.org/api/cluster.html) module. +Cluster pools are built on top of Node.js [cluster](https://nodejs.org/api/cluster.html) module. + +**Remember** that some Node.js tasks are execute by Node.js into the libuv worker pool at process level as explained [here](https://nodejs.org/en/docs/guides/dont-block-the-event-loop/#what-code-runs-on-the-worker-pool). To choose your pool consider that with a FixedThreadPool/FixedClusterPool or a DynamicThreadPool/DynamicClusterPool (in this case is important the min parameter passed to the constructor) your application memory footprint will increase. Increasing the memory footprint, your application will be ready to accept more tasks, but during idle time your application will consume more memory.