RabbitMQ is a powerful message broker that supports multiple protocols, including AMQP and MQTT. If you’re building event-driven microservices or IoT-based apps, having RabbitMQ locally with MQTT support is extremely useful. In this guide, you’ll learn how to: Spin up RabbitMQ using Docker Enable the Management UI Add MQTT protocol support Test both MQTT and AMQP pub/sub functionality via terminal scripts Let’s dive in! ✅ Prerequisites Before you start, make sure you have the following installed: Docker Docker Compose jq for parsing JSON (used in the subscriber script) Install jq on Ubuntu: sudo apt install jq

May 13, 2025 - 10:21
 0

RabbitMQ is a powerful message broker that supports multiple protocols, including AMQP and MQTT. If you’re building event-driven microservices or IoT-based apps, having RabbitMQ locally with MQTT support is extremely useful.

In this guide, you’ll learn how to:

  • Spin up RabbitMQ using Docker
  • Enable the Management UI
  • Add MQTT protocol support
  • Test both MQTT and AMQP pub/sub functionality via terminal scripts

Let’s dive in!

rabbitmq

✅ Prerequisites

Before you start, make sure you have the following installed:

  • Docker
  • Docker Compose
  • jq for parsing JSON (used in the subscriber script)

Install jq on Ubuntu:

sudo apt install jq