Queuing Provides Queuing Performance Increases Laravel 4.2
Laravel Queuing was created by, and is maintained by Graham Campbell, and provides queuing performance increases for Laravel 4.2. It works by doing the actual job queuing (including the execution of sync jobs) after the response has been sent to the client (on shutdown). Feel free to check out the change log, releases, license, api docs, and contribution guidelines.
To get the latest version of Laravel Queuing, simply add the following line to the require block of your
There are some additional dependencies you will need to install for some of the features:
- The beanstalk connector requires
"pda/pheanstalk": "~2.1"in your
- The aws connector requires
"aws/aws-sdk-php": "~2.4"in your
- The iron connector requires
"iron-io/iron_mq": "~1.4"in your
You'll then need to run
composer install or
composer update to download it and have the autoloader updated.
Once Laravel Queuing is installed, you need to register the service provider. Open up
app/config/app.php and add the following to the
app/config/app.php and remove
Failure to do so will result in an infinite loop.
Laravel Queuing requires no configuration behond what Laravel's queuing would otherwise require, but provides a quickstart command for iron queuing where after configuring, you can simply run
php artisan queue:iron with no arguments and it will just work.
All queue classes override Laravel's queue classes. When ever you call methods such as
push, behind the scenes with package will simply queue them up in php's memory for real pushing whenever the
process method on these classes is called. By default, this package will call this on
shutdown through the queue manager, but you may manually call this earlier if you so which. After calling the function, the jobs will be removed from the internal queue so later calls to this function will not push same jobs twice.
This class extends Laravel's queue manager and will override it. It has one extra method
processAll. This will call the
process method on all active queue connections. The functionality of the
process method on each queue is described above.
This class contains no public methods of interest. This class should be added to the providers array in
app/config/app.php. This class will setup ioc bindings and register queue processing.
Illuminate\Queue\QueueServiceProvider must be removed from the service provider list before you add this class.
There are other classes in this package that are not documented here. This is because they are not intended for public use and are used internally by this package.
Feel free to check out the API Documentation for Laravel Queuing.
Laravel Queuing is licensed under The MIT License (MIT).