Ansible implements two of the major versions of the AMQP messaging protocol: AMQP 0-8 and AMQP 0-9-0.
AMQP is a programmable protocol allowing several messaging patterns, you'll learn some of those patterns with a set of tutorials.
Let's start preparing our environment, the first thing you'll do is install RabbitMQ. We have chosen RabbitMQ as our messaging broker since it was designed with AMQP 0-9-1 as its central protocol.
To keep the installation simple use the docker image provided by the RabbitMQ team on Docker Hub. You have to make sure you have docker installed (see https://docs.docker.com/install/), open a console and execute the following command:
docker run -p 5672:5672 rabbitmq:3-alpine
This starts up a RabbitMQ server listening on the default port.
Now, on a Pharo image open a Playground and follow the instructions here.
Save and close this image, you'll use it to perform the tutorials.
That's it! You are ready to start with the tutorials.
The tutorials are intended to be read in order and are inspired by those in the Get Started of the official documentation. They are not a rewrite but rather my interpretation.
Note: The official documentation is very good and covers each of these topics in great detail. We recommend reading it to get a complete understanding. They also provide this great tool to help you explore different messaging patterns.
We provide two objects to simplify the instantiations of a publisher and a consumer:
To use the project as a dependency of your project, take a look at: