tarn.js
bree
Our great sponsors
tarn.js | bree | |
---|---|---|
1 | 11 | |
454 | 2,868 | |
2.4% | 1.5% | |
0.0 | 6.0 | |
7 months ago | 2 months ago | |
JavaScript | JavaScript | |
MIT License | 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.
tarn.js
-
Piscina – The Node.js Worker Pool
Knex, the SQL query builder, uses Tarn.js[1] for connection pooling to the db.
I've been using Tarn a bunch at work recently. We're doing some batch jobs, and I'm queuing work at each stage in Tarn.js pools. I created my own enqueue function that waits until the pool is less than a high-water mark in size before enqueueing. Then the pool has however many workers running.
[1] https://github.com/vincit/tarn.js/
bree
-
Can I make NodeJS app loop forever?
If you only need a single instance, you can use Bree to handle your cron jobs without blocking your main thread.
- What is a good background scheduler?
-
Review: node-cron
Been using https://github.com/hexagon/croner and https://github.com/breejs/bree depending on the use case, both are currently being maintained.
- How are you doing recurring jobs & queued jobs in Node?
- Looking for know how on managing Cron Jobs
-
Scheduling tasks in NodeJS with cron job
Bree is another package with support for workers threads and cron syntax. But for the purpose of this article, we will stick to node-cron. So let's run a simple example:
-
Beware of Promise.all
For more advanced use cases, you might want to look into using a full-featured job queue instead like bree, bull, or agenda.
- What software could be used for scheduling and monitoring routine workflows?
-
What can I use to schedule e-mails after a given date?
An impressive scheduling package I use is called Bree: https://github.com/breejs/bree
-
Alternative to setInterval?
Bree is a super cool cron like scheduler that uses workers to run jobs https://github.com/breejs/bree
What are some alternatives?
piscina - A fast, efficient Node.js Worker Thread Pool implementation
node-cron - A simple cron-like job scheduler for Node.js
NodeLearn - Learning node js app
node-cron - Cron for NodeJS.
poolifier - Fast and small Node.js worker_threads and cluster worker pool
worm-scraper - Scrapes the web serial Worm and its sequel Ward into an eBook format
bull - Premium Queue package for handling distributed jobs and messages in NodeJS.
agenda - Lightweight job scheduling for Node.js
mongodb-cron - MongoDB collection as crontab
bottleneck - Job scheduler and rate limiter, supports Clustering
The gist - BullMQ - Message Queue and Batch processing for NodeJS and Python based on Redis