Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
84 views

We have a system that captures telemetry data in real time. The broker we hire sends telemetry data in real time from the device they place inside our cars. This operation has been running for two ...
laravel_'s user avatar
0 votes
0 answers
741 views

I've been trying to set up the PHP AMQP extension on WAMP server with PHP 8.2. I've placed rabbitmq.4.dll, and rabbitmq.4.pdb in the PHP root and php_amqp.dll in the ext folder. However, I keep ...
Demi God's user avatar
  • 105
0 votes
2 answers
441 views

Here is a hello world example on rabbitmq docs about consumer using php and php-amqplib package: <?php require_once __DIR__ . '/vendor/autoload.php'; use PhpAmqpLib\Connection\AMQPStreamConnection;...
Hải Phạm's user avatar
0 votes
1 answer
101 views

I just started studying rabbit and the following question arose: if I have a exchange TOPIC type with name adverts and a queues: adverts_create (routing_key: `advert.create`) adverts_edit (...
Basil's user avatar
  • 61
0 votes
1 answer
1k views

I have setup with the following configuration. 'derayah' => [ 'driver' => 'rabbitmq', 'queue' => env('RABBITMQ_QUEUE', 'default'), 'connection' => ...
Shaz's user avatar
  • 425
0 votes
1 answer
588 views

I have rabbit queue my_queue which is configured with DLX sending messages to my_queue_dlx. A test with message-ttl works as expected. A message which stays in a queue for ttl and later moved to DLX ...
Aistis's user avatar
  • 4,103
0 votes
0 answers
116 views

I just want my consumer to be up and ready when a message comes. I used 'nohup php consumer.php' , it's kind of working but consumer disappearing again. My question is how to keep the consumer ready ...
Recep Öztürk's user avatar
3 votes
1 answer
689 views

I've setup a local instance of RabbitMQ using Docker Compose and am going through the hello world example on the RabbitMQ docs. Here is a simple attempt at connecting, creating a queue and pushing a ...
DannyXCII's user avatar
  • 928
1 vote
1 answer
2k views

I need to know how to manually ack the messages on the queue direct from the Consumer I created and to set a retry strategy of 5 times, each attemp increasing the time like second try 5min, third try, ...
guilherme.souza's user avatar
-1 votes
1 answer
404 views

In my first attemps to get my head around asynchronous messaging for microservices in php. I built a registration form, sent the data using Ajax to a php script that publishes a message to a save ...
Majd's user avatar
  • 348
0 votes
1 answer
852 views

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 ...
beerLantern's user avatar
2 votes
0 answers
1k views

My RabbitMQ consumer has to process messages in fixed size batches with a prefetch count of 15. This is limited to 15 in order to match AWS SES email send rate - the consumer process has to issue SES ...
ingenieur's user avatar
0 votes
1 answer
103 views

The first one is receiving data from $_POST in a login.php which calls a function from another file through require_once, and the $_POST is populated as I can echo it to my login page and see it, but ...
Kube's user avatar
  • 3
1 vote
0 answers
715 views

Related question:Get queue size from rabbitmq consumer's callback with PhpAmqpLib In the above question the message count is obtained by queue_declare. However this message count only counts ...
cr001's user avatar
  • 703
0 votes
0 answers
207 views

Since PHP is single-threaded there doesn't seem to be a point to increasing QoS/prefetch values and using multiple channels when working with AMQP. I could maybe see a point in something like ReactPHP,...
Fabis's user avatar
  • 2,122
0 votes
1 answer
4k views

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): $callback = function (AMQPMessage $msg) { ...
FancyNancy's user avatar
5 votes
0 answers
755 views

After adding 'delivery_mode' => 2 started getting error Unrecoverable error: PreconditionFailed(406, 'PRECONDITION_FAILED - consumer ack timed out on channel 1', (0, 0), '') Timeout value used: ...
pkvd's user avatar
  • 89
1 vote
2 answers
3k views

I have been able to set up a script that connects to RabbitMQ using the php-amqplib library. However, I want to be able to exit the script, if necessary. We thought that creating a stop.txt file would ...
Richard Slabbert's user avatar
5 votes
0 answers
944 views

In a messenger handler, if the message takes longer to process than the heartbeat, you won't be able to ack the message due to the connection going away. Is there a way in the handler to manually keep ...
Architect Nate's user avatar
2 votes
0 answers
558 views

I am testing heartbeat with long running consumers, on the rabbit documentation is stated that if the client sends 0 for heartbeat the greater value between client and server is used, but what I see ...
davidear's user avatar
  • 149
3 votes
1 answer
3k views

While reading php-amqplib configuration, I saw two parameters: "heartbeat" and "read_write_timeout". On the web I found this (on 2 or 3 forums): read_write_timeout must be at least ...
Benjamin Altays's user avatar
1 vote
0 answers
3k views

I use docker-compose version: '3' and need to install php-amqplib. I faced with strange behaviour. Thrown exception about missing sockets, but I installed and added to my composer.json, how to install ...
shuba.ivan's user avatar
  • 4,111
1 vote
1 answer
3k views

I tried searching the web up and down - and either they point me towards RabbitMQ which is out of the question because the customer specifically asked for ActiveMQ / Amazon MQ which is basically ...
eagle275's user avatar
  • 125
1 vote
0 answers
4k views

I have a php program which have 2 php processes consuming kafka messages. But sometimes it shows errors like "Kafka consumer group authorization failed." Is there any relationship between 2 processes? ...
Henry's user avatar
  • 21
1 vote
1 answer
1k views

I am trying to master some best practices for RabbitMQ. My goal is to create a single connection, and then, using on this single connection, create multiple channels on this connection. Following the ...
Yoong Tat 's user avatar
0 votes
2 answers
508 views

I have a RabbitMQ setup in which jobs are sent to an exchange, which passes them to a queue. A consumer carries out the jobs from the queue correctly in turn. However, these jobs are long processes (...
Rob's user avatar
  • 70
3 votes
1 answer
7k views

I'm trying to use this library. php-amqplib. composer require php-amqplib/php-amqplib But I am getting this error: Using version ^2.11@dev for php-amqplib/php-amqplib ./composer.json has been ...
Kais's user avatar
  • 2,008
0 votes
1 answer
187 views

I have tasks with an ids, and each task has some amount of jobs to do: every job for each user; for each task, number of users and jobs are different. And I want to put all the jobs to one queue with ...
Sergey Nikolaev's user avatar
5 votes
1 answer
4k views

I have a "producer" that's supposed to be always running, but it seems that after a day or so, it is still able to send messages to queues it has previously declared, but when trying to declare a new ...
Skeets's user avatar
  • 4,898
1 vote
1 answer
1k views

I am using the amqp lib for php as rabbitmq client an we want to reject a message from a queue called "test" To not get this message lost we defined the deadletter queue called "test.deadletter". If ...
Jim Panse's user avatar
  • 2,270
0 votes
0 answers
186 views

I have a queue to which a lot of messages are published (~10K). Connected to this queue are multiple consumers with the following code in codeigniter using the php-amqplib library public function ...
Aneesh Relan's user avatar
0 votes
1 answer
760 views

I have a simple PHP code that sends a message to a RabbitMQ queue, when I execute it directly from the console (#php script.php) the message is published correctly, but when I try to open the same ...
fpelaezt's user avatar
0 votes
0 answers
152 views

We are using RabbitMQ v3.7.5, AMQP 0.9.1, Erlang 20.1.7.1, PHP 7, centos 7 Our consumers are written using php-amqplib v2.9.1 We start our consumers by calling a URL using curl. The consumers work ...
brrocks's user avatar
  • 26
4 votes
1 answer
6k views

I want to log working status from workers' callbacks and include a number of messages in the queue left. The only solution I found so far is getting the second member of queue_declare result array, ...
13DaGGeR's user avatar
  • 175
4 votes
1 answer
4k views

I'm trying to figure out whether is possible to store messages in a RabbitMQ exchange even when there's no consumer running. I understood (probably incorrectly) that to achieve that the exchange ...
rayvr's user avatar
  • 323
2 votes
1 answer
1k views

I have a publisher and consumer (RPC model), each of them running on different nodes. The publisher publish a message to a specific queue and the consumer listens to the same queue. While consumer ...
wajdi_jurry's user avatar
0 votes
1 answer
1k views

Using a queue system for handling jobs. We have a cron run once every morning at 1am and it publishes all of our required API calls. We have another consumer cron that runs every five minutes that ...
Gene Kelly's user avatar
0 votes
0 answers
285 views

Exception: Too many read attempts detected in StreamIO /var/www/html/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Wire/IO/StreamIO.php
Vinod Patidar's user avatar
3 votes
1 answer
3k views

I'm just starting out in using php-amqplib and RabbitMQ and want a way to handle messages that, for whatever reason, can't be processed and are nack'd. I thought that one way people handle this is ...
Andy's user avatar
  • 110
1 vote
2 answers
5k views

I am trying to streamline my app to reduce server load by sending complex database tasks to a RabbitMQ queue for processing by a worker dyno. For INSERTs and UPDATEs, this has been relatively ...
Rob's user avatar
  • 70
1 vote
0 answers
375 views

I'm using RabbitMQ in PHP via AMQPLib and RabbitMQ Bundle (for Symfony). The consumers work on multiple servers, that's what Rabbit is for and that's fine. I encountered however a specific case, ...
Kalmar's user avatar
  • 769
1 vote
0 answers
83 views

I'm using symfony 3.4 with RMQ 3.6.14. I was dealing with additional properties, but surpisingly, the message never reached RMQ server. I put some debug point everywhere, but i can not explain it. I'...
user2881467's user avatar
1 vote
1 answer
6k views

I'm just doing a test to try and get RabbitMQ to work with php-amqplib. I've just edited the question so that it's using the right port. Any ideas on this? This is my PHP file... 1 #!/usr/bin/env ...
sdexp's user avatar
  • 786
0 votes
3 answers
13k views

I have installed codeigniter 3.1.8 and installed this library https://github.com/php-amqplib/php-amqplib using composer: composer require php-amqplib/php-amqplib This has created a directory vendor ...
Gandalf's user avatar
  • 13.7k
1 vote
1 answer
2k views

I'm using php-amqplib library for RabbitMQ publishing/consuming messages. I did some research, but did not found a way to list all the routing keys (bindings) that are assigned to an RabbiMQ exchange....
779IDEAS's user avatar
  • 301
0 votes
1 answer
2k views

The System Layout We have three systems: An API Endpoint (Publisher and Consumer) The RabbitMQ Server The main application/processor (Publisher and consumer) System 1 and 3 both use Laravel, and use ...
CmdrSharp's user avatar
  • 1,070
0 votes
1 answer
2k views

What is the best practice, to receive Data from a queue every second via php? I do this with an ajax query, what calls the php script every second. There, a connection object is created and a queue is ...
selbolder's user avatar
  • 527
1 vote
1 answer
1k views

Suppose, in my php script, I have opened a connection to rabbitmq using php-amqplib client. And after publishing message, I dont explicitely close the channel and connection. I dont see any timeout ...
Tanu Gupta's user avatar
3 votes
3 answers
12k views

How can I return message back to the queue if processing result did not suit me. Found only information about message acknowledgments but I think that it does not suit me. I need that if as a result ...
John Doe's user avatar
1 vote
1 answer
3k views

I'm working on a client-server communication with PHP and RabbitMQ, using php-amqplib. I have a producer script that looks like working fine, but my consumer does not receive anything. I checked ...
Mcload's user avatar
  • 308