Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
redis-jobs-ij
Advanced tools
creates jobs and puts it on a reliable redis queue for workers
Basic Usage
npm install redis-jobs
var redisjobs = require('redis-jobs');
var queue = new redisjobs.Queue();
var job = queue.createJob({foo: 'bar'});
job.on('timeout', function(){
console.log('request timed out on message bus');
});
job.on('reply', function(res){
console.log(res);
});
job.start();
//On worker drone
var worker = new redisjobs.Worker();
worker.on('job', function(job){
var res = job.data.foo + 'baz';
job.reply(res);
});
worker.listen();
Jobs are put onto a Redis List and popped off the list using BRPOPLPUSH; When a worker uses reply the message is deleted from the temporary work queue and sent over a publish message to the job requester. This allows jobs to queue up but the responses will be streamed back immediatly. Later releases will include a queue monitor interface to handle automatic load scaling.
FAQs
redis-jobs ==========
We found that redis-jobs-ij demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.