A simple repository to learn how to use RabbitMQ and Symfony 2.8
-
git clone https://github.com/rodolfobandeira/rabbitmq-and-symfony-studies.git
-
cd rabbitmq-and-symfony-studies
-
composer install
-
php app/console | grep rabbitmq
-
Try to create a producer and execute a consumer.
-
php app/console server:run 0.0.0.0:8000
-
Open in the browser. ex: http://127.0.0.1:8000
-
php app/console rabbitmq:consumer hello_rabbitmq
-
In order to create exchanges, queues and bindings at once and be sure you will not lose any message, you can run the following command:
php app/console rabbitmq:setup-fabric
-
start rmpc server
app/console rabbitmq:rpc-server random_int