L
L
linki2013-09-20 00:46:45
PHP
linki, 2013-09-20 00:46:45

RabbitMQ, message every 5 seconds

Maybe someone came across a task in RabbitMQ so that messages were sent once in a certain period of time. I use php and amqp library (http://www.php.net/manual/en/book.amqp.php)

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
moonsly, 2013-09-20
@moonsly

We launch a separate worker or a simple script that will hang in an infinite loop and send messages to the desired AMQP queue with a pause of 5 seconds. For reliability, we control it with some kind of supervisor process, restart it if it crashes.

N
niko83, 2013-09-25
@niko83

It is possible not to worker, but simply to manage with a crown, depending on how flexible it is. It seems nothing unusual and it is quite obvious, what is the catch of the question?

L
linki, 2013-09-25
@linki

This is the point of what I wanted to try to do without krone

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question