Reputation: 2062
Since PHP is single-threaded there doesn't seem to be a point to increasing QoS/prefetch values and using multiple channels when working with AMQP.
I could maybe see a point in something like ReactPHP, but in the usual circuimstances the whole app is going to be blocked while a single message is being processed, so you can't exactly work on multiple messages at the same time (which is the point of QoS). And similarly, it is my understanding that you would use multiple channels to be able to have concurrent data transfers in the same AMQP connection, but here also because of PHP being single threaded, it's not like you can send/receive data through different channels in the same time.
tl;dr; What's the point of using multiple channels and QoS > 1 when working with php-amqplib
?
Upvotes: 0
Views: 184