Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/franzliedke/tardiqueue
A cheap, but effective queue implementation for Laravel
https://github.com/franzliedke/tardiqueue
Last synced: about 1 month ago
JSON representation
A cheap, but effective queue implementation for Laravel
- Host: GitHub
- URL: https://github.com/franzliedke/tardiqueue
- Owner: franzliedke
- Created: 2013-12-11T00:44:58.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-02-17T22:07:51.000Z (over 10 years ago)
- Last Synced: 2024-05-01T21:22:09.488Z (7 months ago)
- Language: PHP
- Size: 251 KB
- Stars: 19
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# tardiqueue - Delayed queue for Laravel
A cheap, but effective queue implementation for Laravel. Easy to install like the sync driver, but more performant for the end-user.
This is achieved by registering jobs as shutdown functions, which means that they will only be executed once the application has sent its response to the client
**NOTE:** This driver does not support the `delete()` and `release()` methods for jobs. They can be called, but will not have any effect. Jobs will be deleted automatically after being run, and releasing them will not run them again.
## Installation with Composer
#### Step 1: Install package through Composer
Add this line to the `require` section of your `composer.json`:
"franzl/tardiqueue": "1.1.x"
Alternately, you can use the Composer command-line tool by running this command:
composer require franzl/tardiqueue:1.1.x
Next, run `composer install` to actually install the package.
#### Step 2: Register the service provider
In your Laravel application, edit the `app/config/app.php` file and add this
line to the `providers` array:'Franzl\Tardiqueue\TardiqueueServiceProvider',
#### Step 3: Configure a delayed queue
In your application, edit the `app/config/queue.php` file and add a new connection using the `delayed` driver, like so:
'delayed' => array(
'driver' => 'delayed',
),To actually make this your default queue, set the `default` option to `delayed`, too.
## Usage
Once installed, you can use Laravel's queue feature as you always do. Tardiqueue will then make sure all your queued jobs are run at the end of each request, so that the client can already start rendering while your server is lifting some heavy tasks.