The gist
node-resque
Our great sponsors
The gist | node-resque | |
---|---|---|
26 | 4 | |
5,182 | 1,334 | |
4.9% | 0.8% | |
9.7 | 8.0 | |
7 days ago | 7 days ago | |
TypeScript | TypeScript | |
MIT License | Apache License 2.0 |
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.
The gist
-
Object Narrowing in Typescript with Graphile Worker
Graphile worker has been great for me because it's a library that works with Postgres that allows me to queue jobs and execute them on the server without adding too many additional layers of complexity for being able to accomplish async tasks. (I'm aware of how popular bull is, but I don't want to add another data-store only for async tasks)
-
Job Schedulers for Node: Bull or Agenda?
Bull is currently in maintenance mode, we are only fixing bugs. For new features check BullMQ, a modern rewritten implementation in Typescript. You are still very welcome to use Bull if it suits your needs, which is a safe, battle-tested library.
-
Are there any generally accepted standards for inter-microservice communication? Or does everyone just go it their own?
I use bullmq with node
-
Next.js background jobs
You might consider using a queue for processing the request. I've found bullMQ, which works with Redis, to be a nice developer experience.
-
What is a good background scheduler?
BullMQ is a pretty solid choice: https://github.com/taskforcesh/bullmq It's the successor of Bull: https://github.com/OptimalBits/bull
-
How to schedule tasks in a Node.js app 🕙
BullMQ
-
First time building microservice-based application
For Node.JS you can use something like BullMQ (https://github.com/taskforcesh/bullmq) and then dispatch jobs to the message queue with your worker handling the jobs. You can read about an example for Bull MQ here (https://deadsimplechat.com/blog/best-nodejs-schedulers/#2-bull)
-
Is my health check endpoint good enough?
bullmq seems like an open issue
-
Help implementing Heroku Data For Redis (+bull & throng) / `ioredis`
In order to try and mitigate the OOMs. I read the Background Jobs in Node.JS with Redis blog post and implemented Heroku Data For Redis with ioredis, BullMQ and Throng,
- BullMQ – fastest, most reliable, Redis-based distributed queue for Node
node-resque
-
Integrating python with a existing CRUD webapp not using python
Since the script will be spending time processing data, the next step would be to use a background job scheduler such as Resque so that the data processing does not slow down the application layer.
- How to execute maximum number of Promises in parallel?
-
RabbitMQ is not really event driven?
You could do this, but why would you? The point of RabbitMQ is that this is all built in and provided by the software and by the client library. If you were to build something on top of gRPC it is you who has the burden of making sure all sorts of edge cases are handled and understanding where you messed up when something goes wrong. It's a bunch of stuff you don't have to write. I would suggest looking into into how sidekiq/resque or the reimplementations of it in other languages (like this for node.js) do it if you want something lighter.
-
Just Wanted to Say Thanks
This inspired me so I will find more time to do this as well. Went ahead and started at one of my favorite projects that I use across several professional and personal projects :)
https://github.com/actionhero/node-resque/issues/496
What are some alternatives?
bull - Premium Queue package for handling distributed jobs and messages in NodeJS.
Bee-Queue - A simple, fast, robust job/task queue for Node.js, backed by Redis.
kue - Kue is a priority job queue backed by redis, built for node.js.
better-queue - Better Queue for NodeJS
RedisSMQ - A simple high-performance Redis message queue for Node.js.
idoit - Redis-backed task queue engine with advanced task control and eventual consistency
croner - Trigger functions or evaluate cron expressions in JavaScript or TypeScript. No dependencies. Most features. Node. Deno. Bun. Browser.
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