M
M
mediadata2016-05-12 00:44:03
Message Queues
mediadata, 2016-05-12 00:44:03

How to organize continuous listening to the RabbitMQ queue in PHP?

How can I ensure continuous processing of messages in the RabbitMQ queue using a php script? The first thing that comes to mind is running the script with a cron, but this is clearly a crutch. It is also possible to launch the supervisor ... Which solution would be correct? Perhaps RabbitMQ already has the necessary functionality and can pull the consumer script itself?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
index0h, 2016-05-12
@mediadata

A worker that in an endless loop will pull the rabbit for new messages in the queue.
Explore at your leisure: https://github.com/videlalvaro/RabbitMqBundle

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question