jobqueue-common
jobqueue-common copied to clipboard
Better interface to integrate RabbitMQ
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