
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
queuex-sdk
Advanced tools
A powerful, feature-rich job queue system for Node.js with advanced retry strategies, job chaining, and intelligent job processing.
🔄 Advanced Retry Strategies
⏱️ Smart Job Processing
🔗 Job Dependencies & Chaining
📊 Queue Management
npm install queuex-sdk
import { QueueX } from 'queuex-sdk';
// Initialize QueueX
const queuex = new QueueX({
redisConnection: 'redis://localhost:6379'
});
// Create a queue
await queuex.createQueue('emailQueue', {
maxConcurrency: 5
});
// Add a job with retry strategy
await queuex.enqueue('emailQueue',
{ to: 'user@example.com', subject: 'Welcome!' },
{
retries: 3,
backoff: {
type: 'exponential',
delay: 1000,
maxDelay: 30000
}
}
);
// Process jobs
queuex.startWorker('emailQueue', async (job) => {
await sendEmail(job.data);
return { sent: true };
});
// Exponential Backoff
await queuex.enqueue('queue', data, {
retries: 5,
backoff: {
type: 'exponential',
delay: 1000,
maxDelay: 60000
}
});
// Linear Backoff
await queuex.enqueue('queue', data, {
retries: 3,
backoff: {
type: 'linear',
delay: 5000
}
});
// Fixed Delay
await queuex.enqueue('queue', data, {
retries: 2,
backoff: {
type: 'fixed',
delay: 10000
}
});
// Job with timeout
await queuex.enqueue('queue', data, {
timeout: 5000 // 5 seconds timeout
});
// Job with TTL
await queuex.enqueue('queue', data, {
ttl: 3600000 // 1 hour TTL
});
// Combined options
await queuex.enqueue('queue', data, {
timeout: 5000,
ttl: 3600000,
retries: 3,
backoff: { type: 'exponential', delay: 1000 }
});
// Create a chain of jobs
await queuex.enqueue('videoQueue', { videoId: '123' }, {
chain: [
{
data: { step: 'compress' },
options: {
priority: 'high',
timeout: 300000
}
},
{
data: { step: 'thumbnail' },
options: {
retries: 2,
backoff: { type: 'linear', delay: 5000 }
}
}
]
});
// Access previous job's result
queuex.startWorker('videoQueue', async (job) => {
if (job.context) {
console.log('Previous job result:', job.context);
}
// Process current job...
});
// FIFO Queue (default)
await queuex.createQueue('fifoQueue', {
strategy: QueueStrategy.FIFO
});
// LIFO Queue
await queuex.createQueue('lifoQueue', {
strategy: QueueStrategy.LIFO
});
// Priority Queue
await queuex.createQueue('priorityQueue', {
strategy: QueueStrategy.PRIORITY
});
// Round Robin Queue
await queuex.createQueue('roundRobinQueue', {
strategy: QueueStrategy.ROUND_ROBIN
});
queuex.on('jobStarted', (job) => {
console.log(`Job ${job.id} started`);
});
queuex.on('jobCompleted', (job) => {
console.log(`Job ${job.id} completed`);
});
queuex.on('jobFailed', (job) => {
console.error(`Job ${job.id} failed:`, job.logs);
});
queuex.on('jobDelayed', (job) => {
console.log(`Job ${job.id} delayed until:`,
new Date(job.scheduledAt!).toISOString()
);
});
interface JobOptions {
priority?: 'high' | 'medium' | 'low';
retries?: number;
backoff?: {
type: 'exponential' | 'linear' | 'fixed';
delay: number;
maxDelay?: number;
};
timeout?: number;
ttl?: number;
delay?: number;
concurrency?: number;
dependsOn?: string[];
cron?: string;
chain?: Array<{
data: any;
options?: JobOptions;
}>;
}
interface QueueOptions {
maxConcurrency?: number;
strategy?: QueueStrategy;
rateLimit?: {
max: number;
interval: number;
};
}
Retry Strategies
Timeouts & TTL
Job Chaining
Queue Strategies
FAQs
A TypeScript-based queue management SDK with Redis support
We found that queuex-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.