Exchange messages between tasks
RabbitMQ is an open source message broker. It’s ideal for exchanging information asynchronously, when you need a place where messages can be stored safely until they’re read. RabbitMQ enables you to exchange information, which is the main reason that you don’t need to use it directly unless you have to perform administrative tasks. As a result, this tutorial will show you how to develop command line utilities in Go and Python that interact with RabbitMQ.
You can install RabbitMQ using your favourite Linux package manager. However, this tutorial is going to use RabbitMQ with the help of a Docker image, which is the recommended method of running RabbitMQ because it’s portable and easy to configure.
You can obtain a RabbitMQ Docker image by executing docker pull rabbitmq:3.8-management . Although RabbitMQ doesn’t come with a graphical interface (because you don’t usually interact with it directly), this particular Docker image comes with the RabbitMQ management plugin (www.rabbitmq.com/management.html) installed, which gives you extra management capabilities through an informative and easy-to-use user interface. We’ll cover the management plugin in the next section.
Docking complete
The best way to use the Docker image is by creating a docker-compose.yml file and setting it up appropriately. The following output shows the configuration found in docker-compose.yml that’s used
You’re reading a preview, subscribe to read more.
Start your free 30 days