
Security News
Software Engineering Daily Podcast: Feross on AI, Open Source, and Supply Chain Risk
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.
Robust distributed worker queue using RabbitMQ to end all the headache
npm i -S rekrow
Dispatcher
const Rekrow = require('rekrow').default;
const rekrow = new Rekrow({
url: 'amqp://localhost',
jobName: 'example'
});
rekrow.connect()
.then(() => {
rekrow.enqueue({data: 1});
});
Worker
const Rekrow = require('rekrow').default;
const rekrow = new Rekrow({
url: 'amqp://localhost',
jobName: 'example',
handle(data) {
console.log(data);
}
});
rekrow.connect();
new Rekrow(opts)Create a new Rekrow instance
opts.url:opts.jobName:opts.handle: (data: Object) => Promise<any>: (optional) specify this handle when you want to handle incoming jobs.opts.maxParallelJobCount: number: (optional) how many job to process at the same time. Default to no limit.opts.maxRetryCount: number: (optional) how many time a fail job should be retried, e.g. 4 means the job will be processed in a total of 5 times (retried 4 times), before it is dicarded. Default to 0.opts.retryWaitTime: number: (optional) how many milliseconds a job should wait before re-queued for retry. Default to 5000.rekrow.connect(): Promise<void>connect much be called before doing anything.
rekrow.enqueue(data: Object): booleanrekrow.close(): Promise<void>Gracefully close connection to RabbitMQ. Will wait for any all running job to finish. But it will stop accepting new jobs.
FAQs
Robust distributed worker queue using RabbitMQ to end all the headache
The npm package rekrow receives a total of 1 weekly downloads. As such, rekrow popularity was classified as not popular.
We found that rekrow 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
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.

Security News
GitHub has revoked npm classic tokens for publishing; maintainers must migrate, but OpenJS warns OIDC trusted publishing still has risky gaps for critical projects.

Security News
Rust’s crates.io team is advancing an RFC to add a Security tab that surfaces RustSec vulnerability and unsoundness advisories directly on crate pages.