jobqueue-common icon indicating copy to clipboard operation
jobqueue-common copied to clipboard

Better interface to integrate RabbitMQ

Open dfeyer opened this issue 6 years ago • 3 comments

I have a project that need to use RabbitMQ, currently the JobQueue package, connect to the queue server for each message, it's not really efficient.

RabbitMQ offers API to use closure to consume message, with connection/deconnection between each message, its more efficiant and allow more monitoring of the consumer, because the connection lives a long time.

Any idea how we can extend the JobQueue package to support this kind of case ?

See this consumer example https://github.com/php-amqplib/php-amqplib/blob/master/demo/amqp_consumer.php#L67

dfeyer avatar Oct 20 '17 11:10 dfeyer