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.
NoMoQue is a database-centric task queue. It's written in NodeJS and persistent data in MongoDB. It is extremely convenient when you already used these two technologies in your backend stack. You can run task producer/worker any place where you have access to your MongoDB instance.
var nmq = require('nomoque');
var nmqOptions = {
dbHost: '127.0.0.1',
dbPort: 27017,
dbName: 'db_name',
collectionPrefix: 'nmq' // Prefix for all collections used by nomoque. The default is no prefix.
};
// create a queue object
var queue = nmq.createQueue(nmqOptions);
// create a payload object, payload could be any javascript plain object which can be stored in mongodb (e.g. string, object, array etc.)
var payload = {
title: 'any value',
count: 20
};
// push a payload into a named queue
queue.push('name of queue', payload);
...
// you can process the queue in other part of your code (separate process or server)
// you must give each task a name and for each queue you can attach as many tasks as you wish
queue.process('name of queue', 'task name', function(payload, done) {
// do something interesting
...
// if everything ok, call done with no argument
done();
// or put error object as the first argument if something goes wrong
done('error, task unfinished');
});
FAQs
Database Centric Distributed Task Queue
The npm package nomoque receives a total of 2 weekly downloads. As such, nomoque popularity was classified as not popular.
We found that nomoque 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.