You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 ?
The main entry point for these methods is JobManager::waitAndExecute() which is called in an endless loop by the work CLI command.
So we would need to turn that around to allow the queue to invoke a callback for new messages, right?
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
The text was updated successfully, but these errors were encountered: