1

I'm working on a script that listens to a message queue. The only problem that I have with this is that I can only bind one queue per script. I'm wondering if there is a way to have a parent php script that can ride herd on a few child scripts to each watch a queue, so that I can receive multiple queue messages, as well as monitoring each child to make sure it's still running.

Basically, each child would watch it's queue, and when it gets a message, it would pass it back to the parent process, and then keep watching the queue.

Edit: I am using RabbitMQ as the message queue.

Ben Dauphinee
  • 4,061
  • 8
  • 40
  • 59
  • from personal experience, i think you might have better luck with monitorying in something like ruby – Ascherer May 17 '11 at 19:39

1 Answers1

1

Uhm... Have you already looked at RabbitMQ?

http://geekexmachina.com/2010/10/parallelizing-php-rabbitmq/

Roberto Aloi
  • 30,570
  • 21
  • 75
  • 112
  • The solution I'm going with is to have the parent script monitoring a message queue, and have all the children dump messages into that queue about their health. – Ben Dauphinee May 21 '11 at 00:00