Description
Poolifier is a fast, small library for worker pools in Node.js. It runs CPU-intensive and I/O-intensive tasks on Node.js servers using worker pools built on the worker_threads and cluster modules, which helps keep the event loop responsive. The README says the library has no runtime dependencies and supports CommonJS, ESM and TypeScript. Pools can have a fixed or dynamic size, and you can switch between pool types with little change to your code. Queued tasks can be rescheduled: idle workers steal tasks, tasks can be stolen under back pressure, and tasks are redistributed when a worker fails. The library supports sync and async task functions, abortable tasks, multiple task functions, queuing priority, distribution strategies, worker affinity and runtime CRUD operations on the pool. Error handling works out of the box. The project offers performance benchmarks and general guidance on choosing a pool type, and its source is on GitHub under the poolifier organization.…
Highlights
- Worker pools with worker_threads or cluster
- Fixed or dynamic pool size
- Task stealing and redistribution
- Sync, async and abortable tasks
- No runtime dependencies
Ratings & Reviews
No ratings yet
Be the first to rate Poolifier.
People also visit
Main Thread Scheduling
Fast and consistently responsive apps using a single function call
Poolifier FAQ
What is Poolifier?
A worker pool library for Node.js that runs tasks on worker_threads or cluster workers.
When should I use it?
The README says it is for CPU-intensive or I/O-intensive tasks on Node.js servers, especially when they cause event loop problems.
Does it have dependencies?
The README says it has no runtime dependencies.
Does it support TypeScript?
Yes. The README says it supports CommonJS, ESM and TypeScript.
How do I choose a pool type?
The README includes general guidelines on pool choice, along with performance benchmarks.
What are the best Poolifier alternatives?
Popular alternatives to Poolifier include Sidequest.js, Main Thread Scheduling and Faster Fifo. See all Poolifier alternatives






