Answer the question
In order to leave comments, you need to log in
How to work with RabbitMQ to accept messages?
Actually the situation is as follows:
1. There are three servers: RabbitMQ and 2 web servers.
2. When accessing the send.php file on the first web server via a POST request, a message is sent to RabbitMQ.
3. The second web server has the recieve.php file. If you run it through the console command php recieve.php
, then the function of writing to the log file of the data sent via send.php is executed.
Question: is it possible to force the RabbitMQ server to open a permanent connection to the recieve.php file or any other way in which I launched recieve.php once and it will always run.
I would appreciate any help!
Answer the question
In order to leave comments, you need to log in
Yes, you need to daemonize the process, for example via supervisor
Example
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question