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 balance of connections to a second rabbitmq server as a
Tag: rabbitmq
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 queue has consumers. Then
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”}’ –apply-to queues. I have the following code the send to the queue
Laravel Queue Worker, RabbitMQ and running jobs generated remotely
I’ll preface this by admitting slight sleep-deprivation. The setup is as follows: API Endpoint (Server A) receives an incoming call, and adds this to a specific queue on the RabbitMQ Server (Server B). RabbitMQ (Server B) is simply a RabbitMQ Queue Server. Nothing more, nothing less. Laravel Installation (Server C) is our actual Laravel install, which is meant to look
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
RabbitMQ and Yii console callback error
I am trying to get RabbitMQ working with the Yii console in order to send transactional emails, but I am experiencing problems with getting the PHP-AMQPLib library to work within Yii. My code is …