[rabbitmq-discuss] PHP message receiving code.

Marek Majkowski majek04 at gmail.com
Fri Jul 22 11:10:02 BST 2011


Hi,

On Fri, Jul 22, 2011 at 09:00, Andrew <aph at repido.co.uk> wrote:
> Hi there,
>
> Apologies if this is a rather basic question but I'm not sure how to
> tackle the implementation of part of a solution using RabbitMQ with
> PHP and AMQP library on Linux.
>
> I have a component on Linux that will receive messages from a web
> site. This component will process each message, performing DB updates
> depending on the message contents. My question is around how this
> receiving software should poll for messages from RabbitMQ. I wondered
> if there is some call-back mechanism that is invoked when a message is
> received, though I haven't found anything on this, or do I implement
> my receiving software as a daemon that periodically polls the message
> queue and processes messages when there are detected in the queue?

We have few tutorials done in php, is it of any use to you?
https://github.com/rabbitmq/rabbitmq-tutorials/tree/master/php

Cheers,
  Marek


More information about the rabbitmq-discuss mailing list