RabbitMQ and Symfony, how use multiple consumers.

Stefano Alletti
1 min readJun 21, 2018

--

I have a stack with many entities like microservices, BDD, ecc…, and i want use RabbitMQ for notify a change to every entities of my stack.

For do that i want use a single producer but n queues that are consumed by n consumers. Every consumer will notify the related entity.

I am not be going into details of how RabbitMQ works. I strongly suggest you to read the documentation.

Assuming that you have already installed RabbitMQ on your server you can follow the tutorial Symfony 4 and RabbitMQ for install package php-amqplib/rabbitmq-bundle into your project.

Continue reading: https://stefanoalletti.wordpress.com/2018/06/20/rabbitmq-and-symfony-how-use-multiple-consumers/

--

--