Linux Format

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.

More from Linux Format

Linux Format5 min read
Install Ubuntu 24.04
Hopefully, by now you’ve managed to create and boot H an Ubuntu installation medium. If not, turn back and follow the instructions in the box forthwith. The first thing you see is a brutalist menu from which you should select the first option (Try Or
Linux Format1 min read
Ultimate Desktop Upgrade!
LXF316 will be on sale Tuesday 28th May 2024 Word processors that can help craft that novel you’ve always been talking about and organise large projects. Revive the old roleplaying system for a digital age as we recreate our own play-by-mail gaming
Linux Format12 min read
Let’s Code Some Demos Like It’s 1990!
Ferenc Deák never throws anything away, which is why he still has all his demoscene files. Sadly, it also means his fridge is a no-go zone. It all started when this author’s beloved retro PC, used to host nostalgic gaming sessions, I suddenly suffer

Related Books & Audiobooks