Download the PHP package biigle/laravel-round-robin-queue without Composer
On this page you can find all versions of the php package biigle/laravel-round-robin-queue. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download biigle/laravel-round-robin-queue
More information about biigle/laravel-round-robin-queue
Files in biigle/laravel-round-robin-queue
Package laravel-round-robin-queue
Short Description A round robin load balancing queue for multiple queue connections
License MIT
Rated 5.00 based on 1 reviews
Informations about the package laravel-round-robin-queue
Round Robin Queue
A round robin load balancing queue for multiple queue connections in Laravel or Lumen.
Works well with multiple biigle/laravel-remote-queue connections.
Installation
Laravel
The service provider is auto-discovered by Laravel.
Lumen
Add $app->register(Biigle\RoundRobinQueue\RoundRobinQueueServiceProvider::class); to bootstrap/app.php.
Set up
The round robin queue requires a persistent cache to work correctly. Make sure you have a cache set up and don't use the array cache.
Usage
Configure a new queue connection in queue.connections to use the roundrobin diver like this:
The connection expects the additional config options queue and connections. The queue option sets the default queue name to which new jobs should be pushed. The connections option sets the other queue connections that should be used for load balancing.
Whenever you push a new job to the queue with the roundrobin driver, it will forward it to one of the connections that are configured in connections, in a round robin fashion. Example:
All versions of laravel-round-robin-queue with dependencies
illuminate/support Version ^5.5|^6.0
illuminate/contracts Version ^5.5|^6.0
illuminate/cache Version ^5.5|^6.0