Skip to content

Latest commit

 

History

History
50 lines (37 loc) · 937 Bytes

README.md

File metadata and controls

50 lines (37 loc) · 937 Bytes

Workshop Php RabbitMq

Requirement

Install

docker run -d --hostname rabbit --name rabbit -p 8080:15672 -p 5672:5672 rabbitmq:3.7.4-management-alpine
composer install
php -S 127.0.0.1:8000 -t public

Workshop

Build with Symfony4 and Rabbitmq (https://www.rabbitmq.com/, http://symfony.com/)

Example with RabbitMqBundle and "Dead Letter Exchange"

Publish message with controller

http://localhost:8000/task

Publish messages with command:

./bin/console app:publish

Consume all messages:

./bin/console rabbitmq:consumer task

Example with Messenger Component

Publish message with controller

http://localhost:8000/messenger

Consume all messages:

./bin/console messenger:consume-messages default