The RabbitTemplate class allows sending and receiving messages with RabbitMQ.
However, It is easier to set up RabbitMQ as a docker image.
Inside this directory, create a package.
Messages are not directly sent to a queue.
In this tutorial we will be sending a message to RabbitMQ.
A map keyed by destination name will be used to store all available destinations.
The solution is depicted in the figure below.
We chose ampqlib for being the most friendly to use.