Skip to content

RabbitMQ

We use RabbitMQ as our message broker for event driven design. This means that any of our services that require RabbitMQ to operate will need RabbitMQ installed locally or need to be connected to a dev instance of rabbitmq.

Local Set Up

On a macbook first ensure you have homebrew setup. Here is a link to show how to do this.

Next run brew install rabbitmq this will install all of the CLI tools to the sbin directory under /usr/local/Cellar/rabbitmq, which is accessible via /usr/local/opt/rabbitmq/sbin. In case that directory is not in PATH it's recommend to append it:

export PATH=$PATH:/usr/local/opt/rabbitmq/sbin

You can then run rabbitmq-server -detached to start rabbitmq in daemon mode.

Make sure to look at the configuration section to see how to get it ready for our services.

Server Configuration

The main part of the configuration is going to the running instance (http://localhost:15672/#/ for local) with the username guest and pw guest. In the exchanges section, add a new exchange with this info.

1
2
3
name: events
type: topic
durable: true