piscina
Bee-Queue
Our great sponsors
piscina | Bee-Queue | |
---|---|---|
14 | 6 | |
3,916 | 3,619 | |
2.9% | 2.0% | |
8.4 | 8.5 | |
5 days ago | 4 days ago | |
TypeScript | JavaScript | |
GNU General Public License v3.0 or later | GNU General Public License v3.0 or later |
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.
piscina
-
Migrating from Jest to Vitest for your React Application
Workers multi-threading via Tinypool (a lightweight fork of Piscina)
-
„nodejs can not scale well?“
For threading best to use piscina and for clustering best to use pm2 which does not even need one line of code change in Node.js code.
- Express Backend Architecture w. heavy computing
-
Any good Node.js parallelization libraries?
We used piscina at it was quite good: https://github.com/piscinajs/piscina
-
piscina VS threadman - a user suggested alternative
2 projects | 10 Sep 20222 projects | 10 Sep 2022
-
Benchmarking Node.js Worker Threads
We used Benchmark.js for benchmarking and piscina as a pool for worker threads. benchmark.js was used to run the same code in 2 scenarios - one using a single thread and one using the piscina pool. The degree of parallelism was passed to the program via an environment variable. The test code is present in worker.js in both the cases.
-
[AskJS] How do you do JS on the backend?
piscina for managing node's worker threads
-
How Browsers Lay Out Web Pages
One other thing...this passed by in my feeds last week, I’m not an expert in web workers or browser threads etc, but it seems like it might be relevant, so sharing it just in case:
“A fast, efficient Node.js Worker Thread Pool implementation”
https://github.com/piscinajs/piscina
-
Use Multiple Threads in Node like a PRO
This is by no means a complete list of what piscina can do.... checkout the official docs here.
Bee-Queue
-
Node.js backend architecture question
You could use a Redis based job system like https://github.com/bee-queue/bee-queue for maintenance and email. The jobs could be populated by the API service, some cron scripts, and whatever else, while you'd have dedicated worker processes (written in Node.js?) pulling the jobs and running them.
-
Building a task queue, Part 1
The Node.js libraries BullMQ and Bee Queue are also infrastructure and interface. However, you typically have to use their interface.
-
Scaling synchronous microservices
I'm a fan of bee-queue for this when working in Node, but it's just a wrapper around reliable queue patterns in Redis; you might want to investigate how it works (the readme is quite good) for your own use case, or find an equivalent for your environment. The key is it's designed for short tasks (seconds long, not minutes or hours), and you can receive a result back from the task unlike some fire-and-forget queueing solutions.
-
[Question] API routes and worker_threads
I'd also consider something like bee-queue, which would enable you to scale across processes or even across multiple server machines.
-
NodeJS recommended job queue/message queue??
For NodeJS, there are BullMQ(successor of Bull), Bull and Bee Queue
-
[AskJS] How do you do JS on the backend?
bee-queue for offloading tasks onto non-web-server machines
What are some alternatives?
node-worker-threads-pool - Simple worker threads pool using node's worker_threads module.
bull - Premium Queue package for handling distributed jobs and messages in NodeJS.
threads.js - 🧵 Make web workers & worker threads as simple as a function call.
kue - Kue is a priority job queue backed by redis, built for node.js.
bree - Bree is a Node.js and JavaScript job task scheduler with worker threads, cron, Date, and human syntax. Built for @ladjs, @forwardemail, @spamscanner, @cabinjs.
Qedis
Nest - A progressive Node.js framework for building efficient, scalable, and enterprise-grade server-side applications with TypeScript/JavaScript 🚀
The gist - BullMQ - Message Queue and Batch processing for NodeJS and Python based on Redis
node-express-boilerplate - A boilerplate for building production-ready RESTful APIs using Node.js, Express, and Mongoose
node-resque - Node.js Background jobs backed by redis.
poolifier - Fast and small Node.js worker_threads and cluster worker pool