workerpool
nodejs-performance-optimizations
workerpool | nodejs-performance-optimizations | |
---|---|---|
1 | 1 | |
1,961 | 129 | |
- | - | |
8.0 | 0.0 | |
4 days ago | about 3 years ago | |
JavaScript | JavaScript | |
Apache License 2.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
workerpool
-
Managing Multiple Threads In Node.JS
The module we will work with today is called Worker Pool. Created by Jos de Jong, Worker Pool offers an easy way to create a pool of workers for both dynamically offloading computations as well as managing a pool of dedicated workers. It's basically a thread-pool manager for Node JS, supporting Worker Threads, Child Processes and Web Workers for browser-based implementations.
nodejs-performance-optimizations
-
Managing Multiple Threads In Node.JS
At this point, you have 2 options: Use your own NodeJS app (and install workerpool and bcryptjs modules), or download the source code from GitHub for this tutorial and my NodeJS Performance Optimization video series.
What are some alternatives?
comlink - Comlink makes WebWorkers enjoyable.
Express - Fast, unopinionated, minimalist web framework for node.
piscina - A fast, efficient Node.js Worker Thread Pool implementation
partytown - Relocate resource intensive third-party scripts off of the main thread and into a web worker. π
threads.js - 𧡠Make web workers & worker threads as simple as a function call.
workerize - ποΈ Run a module in a Web Worker.
workly - A really simple way to move a function or class to a web worker. ποΈββοΈβ π
ants - πππ ants is a high-performance and low-cost goroutine pool in Go./ ants ζ―δΈδΈͺι«ζ§θ½δΈδ½ζθη goroutine ζ± γ
greenlet - π¦ Move an async function into its own thread.
clooney - Clooney is an actor library for the web. Use workers without thinking about workers.