How do you synchronously listen for messages from a RabbitMQ queue in PHP?

I'm not sure how the PHP Pecl extension implements consumers, but my Amqp library allows you to listen out for incoming messages (i.e. Consume) by calling a function, and there are several exit strategies available in case you don't want to block forever. There's documentation available here check the section "Implementing a Consumer", and a demo script here.

I'm not sure how the PHP Pecl extension implements consumers, but my Amqp library allows you to listen out for incoming messages (i.e. Consume) by calling a function, and there are several "exit strategies" available in case you don't want to block forever. There's documentation available here, check the section "Implementing a Consumer", and a demo script here.

Thanks for that. I did see your library, and the tutorial is excellent, but it didn't seem to have any reference docs. Maybe all available elements of the library are used in the demos, but I was a bit nervous of relying solely on reverse engineering demos.

For example, I like the concept of consuming multiple messages at a time, which the PECL extension provides via the min and max options. Your docs make reference to invoking basic. Qos but it's hard to work out how I would implement a multiple-message receiver class.

– Andrew Mar 13 at 9:38.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions