RabbitMQ is a mature message broker used to decouple services, distribute work to background workers and route events. It supports flexible routing through exchanges, strong delivery guarantees and several protocols. A VPS gives you a dedicated broker with predictable performance, provided it is configured for durability and monitored.
Core Concepts
- Exchanges receive messages and route them to queues by type: direct, topic, fanout or headers.
- Queues store messages until consumers process them.
- Bindings connect exchanges to queues with routing rules.
- Virtual hosts separate applications with their own exchanges, queues and permissions.
Installation and Ports
Install RabbitMQ and a compatible Erlang version from the official repositories, or run the official Docker image with a persistent volume for data. Common ports:
| Port | Use |
|---|---|
| 5672 / 5671 | AMQP / AMQP over TLS |
| 15672 | Management UI and HTTP API |
| 25672, 4369 | Inter-node communication and peer discovery in clusters |
| 15692 | Prometheus metrics (when enabled) |
Allow these only from application servers and administrators; never expose the management UI publicly.
Users and Virtual Hosts
Create a virtual host per application or environment and a user per application with permissions limited to its virtual host. The built-in guest user can only connect from localhost by default; keep it that way or delete it. Use strong generated passwords stored in your secrets management.
Choosing Queue Types
| Type | Use |
|---|---|
| Quorum queues | Replicated, durable queues using Raft; recommended for important messages in clusters |
| Classic queues | Single-node queues; fine for transient or less critical data |
| Streams | Append-only logs with replay, for high-volume event streams |
Older classic mirrored queues have been removed in recent major versions; use quorum queues for replication. Declare durable queues and publish persistent messages for data you cannot lose.
Reliable Delivery
- Publisher confirms: the broker confirms each message once safely stored; publishers retry unconfirmed messages.
- Consumer acknowledgements: consumers acknowledge after processing; unacknowledged messages are redelivered if a consumer dies.
- Prefetch (QoS): limit unacknowledged messages per consumer (often 10–100 for fast tasks, 1 for long tasks) to balance work.
- Dead-letter exchanges: route rejected or expired messages to a separate queue for inspection.
- Idempotent consumers: redelivery means a message may be processed twice.
Memory and Disk Alarms
RabbitMQ raises a memory alarm when usage passes the configured high watermark (a fraction of system RAM by default) and a disk alarm when free disk falls below its limit. While an alarm is active, publishers are blocked. Prevent this by keeping queues short (add consumers when backlogs grow), setting queue length limits or TTLs where appropriate, leaving memory headroom on the VPS, and setting the disk free limit to a safe value for your message volume.
TLS and Security
- Enable TLS for clients connecting across networks.
- Keep ports firewalled to known servers.
- Put the management UI behind a VPN or restrict it by IP.
- Update RabbitMQ and Erlang regularly, following the compatibility matrix.
Clustering
For high availability, run three nodes (an odd number, so quorum queues keep a majority) on separate VPS servers in the same region with low-latency private networking. Clients should connect through a load balancer or a list of nodes and reconnect automatically. Clusters add operational work: upgrades must follow the documented rolling procedure, and all nodes share the same Erlang cookie.
Monitoring
Enable the Prometheus plugin and track queue depth, message rates in and out, unacknowledged messages, consumer counts, connections, memory and disk alarms, and node health. Alert when a queue grows steadily or has no consumers, and on any alarm (see our monitoring guide).
Backups and Definitions
Export definitions (users, virtual hosts, exchanges, queues, policies) regularly and store them in version control or backups, so you can rebuild the topology quickly. Messages themselves are transient by nature; protect them with quorum queue replication rather than file backups.
Sizing
| Workload | Suggested plans |
|---|---|
| Task queue for a web app, single node | 2 vCores / 8 GB |
| Busy microservices, persistent messages | 4 vCores / 16 GB |
| Critical workloads with quorum queues | 3 × 4 vCores / 16 GB cluster |
Fast NVMe storage helps with persistent messages and quorum queues, which write to disk.
RabbitMQ or Kafka?
RabbitMQ excels at task distribution, flexible routing and per-message acknowledgement. Kafka excels at high-volume event streams retained for replay by many consumers (see our Kafka guide). For Python task queues, RabbitMQ pairs naturally with Celery (see our Celery guide).
Example: Order Processing
An online business publishes order events to a topic exchange on a three-node RabbitMQ cluster. Quorum queues feed separate consumers for invoicing, inventory and notifications, each with prefetch 20 and idempotent processing. Failed messages go to dead-letter queues reviewed daily, and alerts fire when any queue backlog exceeds five minutes of normal traffic.
Common Mistakes
- Using the guest user or one shared user for every app.
- Management UI exposed to the internet.
- No publisher confirms or consumer acknowledgements.
- Letting queues grow until memory alarms block publishers.
- Two-node clusters, which cannot keep a quorum after a failure.
In Short
Run RabbitMQ with per-app users and virtual hosts, private ports and TLS, quorum queues for important data, confirms and acknowledgements, short queues with headroom, three-node clusters for critical use, and good monitoring.
SkyRainCloud Plans for This Workload
RabbitMQ needs memory headroom and fast disks for persistent messages. 2 vCores / 8 GB handles thousands of messages per second for typical apps; a three-node cluster of 4 vCores / 16 GB suits critical workloads.
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.
| Plan | vCores | RAM | Storage | Network | Price | Good for | Buy |
|---|---|---|---|---|---|---|---|
| VPS 1 — AMD | 2 | 8 GB DDR4 ECC | 40 GB NVMe SSD | 1 Gbps, unmetered | ₹649/month | Websites, small APIs, bots, staging and VPN servers | Order |
| VPS 2 — AMD | 4 | 16 GB DDR4 ECC | 80 GB NVMe SSD | 1 Gbps, unmetered | ₹1,299/month | WooCommerce, Node.js/Python backends, Docker Compose stacks, CI runners | Order |
| VPS 3 — AMD | 8 | 32 GB DDR4 ECC | 150 GB NVMe SSD | 1 Gbps, unmetered | ₹2,499/month | Production databases, high-traffic sites, multi-container apps | Order |
| VPS 4 — AMD | 16 | 64 GB DDR4 ECC | 250 GB NVMe SSD | 1 Gbps, unmetered | ₹4,899/month | Large production workloads, SaaS platforms, analytics, in-memory caches | Order |
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.
| Plan | vCores | RAM | Storage | Network | Price | Good for | Buy |
|---|---|---|---|---|---|---|---|
| VPS 1 — Intel | 2 | 8 GB DDR4 ECC | 40 GB NVMe SSD | 1 Gbps, unmetered | ₹649/month | Business websites, small apps, scheduled jobs and bots | Order |
| VPS 2 — Intel | 4 | 16 GB DDR4 ECC | 80 GB NVMe SSD | 1 Gbps, unmetered | ₹1,169/month | Business software, mid-size databases, several sites on one server | Check stock |
| VPS 3 — Intel | 8 | 32 GB DDR4 ECC | 150 GB NVMe SSD | 1 Gbps, unmetered | ₹2,249/month | ERP/CRM stacks, heavier databases, multiple production apps | Check stock |
| VPS 4 — Intel | 16 | 64 GB DDR4 ECC | 250 GB NVMe SSD | 1 Gbps, unmetered | ₹4,299/month | High-memory workloads and consolidated production servers | Check 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.