Add support for SQS and Redis in queue system

This commit is contained in:
Dane Everitt 2016-10-27 17:16:47 -04:00
parent bb96039bf1
commit f80e481263
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
2 changed files with 16 additions and 23 deletions

View file

@ -13,7 +13,6 @@ DB_PASSWORD=secret
CACHE_DRIVER=file CACHE_DRIVER=file
SESSION_DRIVER=database SESSION_DRIVER=database
QUEUE_DRIVER=database
MAIL_DRIVER=smtp MAIL_DRIVER=smtp
MAIL_HOST=mailtrap.io MAIL_HOST=mailtrap.io
@ -26,3 +25,12 @@ MAIL_FROM=you@example.com
API_PREFIX=api API_PREFIX=api
API_VERSION=v1 API_VERSION=v1
API_DEBUG=false API_DEBUG=false
QUEUE_DRIVER=database
QUEUE_HIGH=high
QUEUE_STANDARD=standard
QUEUE_LOW=low
SQS_KEY=aws-public
SQS_SECRET=aws-secret
SQS_QUEUE_PREFIX=aws-queue-prefix

View file

@ -38,38 +38,23 @@ return [
'database' => [ 'database' => [
'driver' => 'database', 'driver' => 'database',
'table' => 'jobs', 'table' => 'jobs',
'queue' => 'default', 'queue' => env('QUEUE_STANDARD'),
'retry_after' => 60,
],
'beanstalkd' => [
'driver' => 'beanstalkd',
'host' => 'localhost',
'queue' => 'default',
'retry_after' => 60, 'retry_after' => 60,
], ],
'sqs' => [ 'sqs' => [
'driver' => 'sqs', 'driver' => 'sqs',
'key' => 'your-public-key', 'key' => env('SQS_KEY'),
'secret' => 'your-secret-key', 'secret' => env('SQS_SECRET'),
'queue' => 'your-queue-url', 'prefix' => env('SQS_QUEUE_PREFIX'),
'region' => 'us-east-1', 'queue' => env('QUEUE_STANDARD'),
], 'region' => env('SQS_REGION', 'us-east-1'),
'iron' => [
'driver' => 'iron',
'host' => 'mq-aws-us-east-1.iron.io',
'token' => 'your-token',
'project' => 'your-project-id',
'queue' => 'your-queue-name',
'encrypt' => true,
], ],
'redis' => [ 'redis' => [
'driver' => 'redis', 'driver' => 'redis',
'connection' => 'default', 'connection' => 'default',
'queue' => 'default', 'queue' => env('QUEUE_STANDARD'),
'retry_after' => 60, 'retry_after' => 60,
], ],