Skip to content

Tag: rabbitmq

How to manage big spikes of connections to RabbitMQ

Our rabbitmq server can’t keep up with connections when we have spikes above 3000 connections/second, and new connections take long to stablish (reaching 3s limit we have for failing). We need publishers to return fast as any delay transmit to user experience. We are currently looking at coding a load b…

PHP RabbitMQ consumer stops consuming events

I have a php daemon, which uses php-amqplib, that consumes messages from RabbitMQ server. Here is a gist of it (though it’s a bit more complex than that): When I run it in the background, it handles the events, writes output and errors to various logs and I can see in RabbitMQ control panel that the que…

how to test the DLX on RabbitMQ

I am trying to set up DLX, ideally 1 for each queue. I want to migrate 5 jobs but starting with one. I ran this line which will apply to all queues but I am not sure how to select a specific queue rabbitmqctl set_policy DLX “.*” ‘{“dead-letter-exchange”:”all-dlx”}&#82…

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 …