About RabbitMQ
RabbitMQ is a message broker licensed MPL-2.0. Producers publish to exchanges, routing rules deliver into queues and consumers acknowledge what they process, so services hand off work without waiting on each other. Quorum queues replicate data with Raft, and streams keep an append-only log for replay.
One CloudSat VPS can carry the broker for a small platform, and three servers form a cluster for quorum queues. Keep the AMQP and management ports away from the open internet and connect apps over TLS or a VPN.
Clients connect on 5672 and the management UI on 15672; the built-in guest account works only from localhost.
What you get with RabbitMQ
- Direct, topic, fanout and headers exchanges
- Quorum queues replicated with Raft
- Streams for replayable, high-volume logs
- AMQP 0-9-1 and 1.0, plus MQTT and STOMP plugins
- Management UI, HTTP API and Prometheus metrics
RabbitMQ use cases
- Queue background jobs like emails and exports
- Decouple microservices with publish and subscribe
- Collect MQTT messages from IoT devices
After you deploy RabbitMQ
- With the server live (Running in the console), add an admin over SSH with
rabbitmqctl add_user admin '<password>'andrabbitmqctl set_user_tags admin administrator. - Grant it the default virtual host:
rabbitmqctl set_permissions -p / admin ".*" ".*" ".*". - Sign in to
http://<server IP>:15672; if the UI is off, enable it withrabbitmq-plugins enable rabbitmq_management. - Limit 5672 and 15672 to your app servers and office IP in a CloudSat firewall, and use TLS on 5671 across the internet.
RabbitMQ ports
Open these in your firewall if you use one: 5672/tcp AMQP, 5671/tcp AMQP over TLS, 15672/tcp Management UI and HTTP API, 5552/tcp Stream protocol.
RabbitMQ FAQ
Why can't I log in as guest?
By default the guest user may only connect from localhost. Create a named administrator with rabbitmqctl and use it for the management UI and remote clients.
Quorum queues or classic queues?
Quorum queues are the replicated, durable choice for important messages on a cluster. Classic queues suit a single node or transient data, and streams fit large fan-out or replay.
Disclaimer. The RabbitMQ project has no affiliation with CloudSat and does not endorse it. Names and logos belong to their owners and appear only to identify the software.