DEV Community

Alessandro Pio Ardizio
Alessandro Pio Ardizio

Posted on

Node js | Thread pool implementations

I develop two thread pool on top on worker_threads that you can use with an high level API https://github.com/pioardi/poolifier .

This project contain two thread pool implementations :

The first implementation is a static thread pool , with a defined number of threads that are started at creation time and will be reused.

The second implementation is a dynamic thread pool with a number of threads started at creation time ( these threads will be always active and reused) and other threads created when the load will increase ( with an upper limit, these threads will be reused when active ), the new created threads will be stopped after a configurable period of inactivity.

I need your feedbacks and I would like your contribution on my project :)

Top comments (0)