Development12 min read•Updated November 2026

VPS Hosting for BullMQ Workers

Quick answer

BullMQ is a Node.js library for job queues backed by Redis. To run it on a VPS, configure Redis with maxmemory-policy noeviction and persistence (AOF), create queues for each job type, and run workers as separate processes managed by systemd, PM2 or Docker, with concurrency set to the job's nature (high for I/O-bound jobs, about one process per vCore for CPU-bound ones). Use retries with exponential backoff, rate limiters for external APIs, job schedulers for repeating jobs, automatic removal of old completed jobs, graceful shutdown on deploys, and a dashboard plus metrics to watch queue health.

Node.js applications frequently need background work: sending emails and WhatsApp messages, generating PDFs, syncing with external APIs, processing uploads and running scheduled tasks. BullMQ is a popular choice because it is fast, TypeScript-friendly and uses Redis, which many stacks already run. Production reliability depends on Redis configuration and a few worker settings.

How BullMQ Works

API / app ─▶ Queue.add(job) ─▶ Redis ─▶ Worker processes (concurrency N)
                                  ▲               │
                       QueueEvents / dashboard ◀──┘ completed, failed, progress

Jobs live in Redis with states such as waiting, active, delayed, completed and failed. Workers pull jobs, run your processor function and report results. For general patterns, see our background workers guide.

Redis Configuration

  • Set maxmemory-policy noeviction. Eviction policies can delete queue keys and corrupt queue state; BullMQ documentation requires noeviction.
  • Enable AOF persistence so jobs survive Redis restarts.
  • Size memory for peak queue length times job data size, and keep job payloads small (pass IDs, not documents).
  • Keep Redis on a private network with a password or ACL user, and consider a dedicated Redis instance for queues separate from caching.

See our Redis guide for installation and security.

Workers and Concurrency

Run workers as separate processes from the web server so heavy jobs do not slow API responses. The concurrency option lets one worker process handle several jobs at once, which suits I/O-bound jobs such as API calls. Node.js runs JavaScript on a single thread, so CPU-heavy jobs need more processes (or sandboxed processors) rather than higher concurrency. Use separate queues and worker pools for different job types so slow jobs do not delay urgent ones.

Retries and Backoff

Set attempts and an exponential backoff on jobs that call unreliable services. Throw errors for transient failures to trigger retries, and mark permanent failures as unrecoverable so they are not retried pointlessly. Make processors idempotent, because retries and stalled-job recovery can run a job more than once.

Rate Limiting

BullMQ workers support rate limiters (for example a maximum number of jobs per time window) so you stay within external API and messaging provider limits. Combine rate limits with priorities so OTPs and password resets go first (see our notification service guide).

Scheduled and Repeating Jobs

Use delayed jobs for one-off future tasks and job schedulers (repeatable jobs) for cron-like schedules such as nightly reports. Define schedulers in one place at startup with stable IDs so deploys do not create duplicates, and make sure the server timezone or the scheduler's timezone setting is what you expect.

Flows

Flows let a parent job wait for child jobs, useful for workflows such as "process all pages, then assemble the PDF" or "resize every image, then publish the listing". Keep flows shallow and observable, and handle failures of individual children explicitly.

Cleaning Up Jobs

Completed and failed jobs stay in Redis unless removed. Use removeOnComplete and removeOnFail with an age or count limit, keeping enough failed jobs to debug. Without cleanup, Redis memory grows until it fails.

Stalled Jobs and Graceful Shutdown

If a worker dies mid-job, BullMQ detects the stalled job and moves it back to waiting (up to a limit). On deploys, call worker.close() on SIGTERM so the worker finishes active jobs before exiting, and give your process manager enough stop timeout. Avoid blocking the event loop with long synchronous code, which can make jobs look stalled.

Dashboards and Monitoring

Dashboards such as Bull Board or similar tools show queues, job states and failures, and let you retry jobs. Protect them with authentication and keep them internal. Export metrics for waiting jobs, active jobs, failure rate and processing time, and alert when queues keep growing or no worker is processing (see our monitoring guide).

Running in Production

  • Run workers with PM2, systemd or Docker, with automatic restarts.
  • Pass configuration through environment variables; never hard-code Redis credentials.
  • Version job data formats so new code can handle jobs queued by old code.
  • Log job IDs with every log line for traceability.

Sizing

WorkloadSuggested plan
Emails, webhooks, API sync for a typical app2 vCores / 8 GB (Redis plus workers)
PDFs, images, heavier processing4 vCores / 16 GB with several worker processes
High volume, many queuesSeparate Redis server plus worker servers

BullMQ, Celery or a Broker?

BullMQ is the natural choice for Node.js teams already using Redis. Python teams usually choose Celery (see our Celery guide). For cross-language messaging with complex routing, a broker such as RabbitMQ may fit better.

Example: A Booking Platform

A Node.js booking platform runs Redis with noeviction and AOF on a 4 vCore / 16 GB VPS alongside three worker processes. A notifications queue sends WhatsApp and email confirmations with a rate limiter, a documents queue renders invoices, and a scheduler runs reminder jobs every 15 minutes. Completed jobs are removed after a day, failed jobs are kept for a week, and workers close gracefully on deploy.

Common Mistakes

  • Redis with an eviction policy, silently losing jobs.
  • Large job payloads filling Redis memory.
  • No cleanup of completed jobs.
  • CPU-heavy jobs with high concurrency in one process.
  • Killing workers mid-job on every deploy.

In Short

Configure Redis with noeviction and persistence, run workers as separate processes, tune concurrency to the job type, retry with backoff, rate-limit external calls, clean up jobs, shut down gracefully and monitor queues.

SkyRainCloud Plans for This Workload

BullMQ workers are usually I/O-bound and light; Redis needs memory for queued jobs. 2 vCores / 8 GB runs Redis plus workers for most apps; CPU-heavy jobs need more vCores and more worker processes.

AMD EPYC 7C13 VPS

Dedicated KVM vCores on AMD EPYC 7C13 (up to 3.70 GHz) with DDR4 ECC memory, NVMe SSD and an unmetered 1 Gbps port.

PlanvCoresRAMStorageNetworkPriceGood forBuy
VPS 1 — AMD28 GB DDR4 ECC40 GB NVMe SSD1 Gbps, unmetered₹649/monthWebsites, small APIs, bots, staging and VPN serversOrder
VPS 2 — AMD416 GB DDR4 ECC80 GB NVMe SSD1 Gbps, unmetered₹1,299/monthWooCommerce, Node.js/Python backends, Docker Compose stacks, CI runnersOrder
VPS 3 — AMD832 GB DDR4 ECC150 GB NVMe SSD1 Gbps, unmetered₹2,499/monthProduction databases, high-traffic sites, multi-container appsOrder
VPS 4 — AMD1664 GB DDR4 ECC250 GB NVMe SSD1 Gbps, unmetered₹4,899/monthLarge production workloads, SaaS platforms, analytics, in-memory cachesOrder

Intel Xeon Platinum 8269CY VPS

KVM VPS on Intel Xeon Platinum 8269CY (up to 3.80 GHz Turbo) with DDR4 ECC memory, NVMe SSD, full root access and an unmetered 1 Gbps port.

PlanvCoresRAMStorageNetworkPriceGood forBuy
VPS 1 — Intel28 GB DDR4 ECC40 GB NVMe SSD1 Gbps, unmetered₹649/monthBusiness websites, small apps, scheduled jobs and botsOrder
VPS 2 — Intel416 GB DDR4 ECC80 GB NVMe SSD1 Gbps, unmetered₹1,169/monthBusiness software, mid-size databases, several sites on one serverCheck stock
VPS 3 — Intel832 GB DDR4 ECC150 GB NVMe SSD1 Gbps, unmetered₹2,249/monthERP/CRM stacks, heavier databases, multiple production appsCheck stock
VPS 4 — Intel1664 GB DDR4 ECC250 GB NVMe SSD1 Gbps, unmetered₹4,299/monthHigh-memory workloads and consolidated production serversCheck stock

Prices are monthly in INR as listed on the SkyRainCloud store (verified 2026-11-14). Stock and final pricing are shown on the product page at checkout.

Frequently Asked Questions

What is BullMQ?
A Node.js library for job queues and background workers backed by Redis.
Which Redis settings does BullMQ need?
maxmemory-policy noeviction, persistence such as AOF, and enough memory for queued jobs.
How do I set BullMQ worker concurrency?
High concurrency for I/O-bound jobs; more processes rather than higher concurrency for CPU-bound jobs.
How do retries work in BullMQ?
Set attempts and a backoff strategy on jobs; thrown errors trigger retries until attempts run out.
How do I schedule repeating jobs?
Use job schedulers (repeatable jobs) with stable IDs, defined at startup.
Why is my Redis memory growing?
Completed and failed jobs are kept; configure removeOnComplete and removeOnFail and keep payloads small.
What are stalled jobs?
Jobs whose worker stopped responding; BullMQ moves them back to waiting for another attempt.
How do I deploy without losing jobs?
Call worker.close() on shutdown so active jobs finish, with an adequate stop timeout.
Can BullMQ rate-limit jobs?
Yes, workers support rate limiters to respect external API limits.
Which plan suits BullMQ?
2 vCores / 8 GB for Redis plus workers in most apps; 4 vCores / 16 GB for heavier processing.
Instant UPI • ₹649/mo
Fast KVM Cloud Provisioning