Skip to content
Advertisement

Tag: amqp

How to use Symfony Messenger component in standalone code to send AMQP messages

We’re using Symfony Messenger in a Symfony 5 project to integrate with RabbitMQ. It works fine when sending messages within Symfony, but I need the ability to use the Messenger component to send messages from some legacy PHP applications that are not built with the Symfony framework. Under Symfony, it handles all the magic by injecting the MessageBusInterface and all

RabbitMQ PRECONDITION_FAILED – unknown delivery tag

We have a PHP app that forwards messages from RabbitMQ to connected devices down a WebSocket connection (PHP AMQP pecl extension v1.7.1 & RabbitMQ 3.6.6). Messages are consumed from an array of queues (1 per websocket connection), and are acknowledged by the consumer when we receive confirmation over the websocket that the message has been received (so we can requeue

Advertisement