Download the PHP package jeylabs/laravel-sns-sqs-sub-pub without Composer
On this page you can find all versions of the php package jeylabs/laravel-sns-sqs-sub-pub. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jeylabs/laravel-sns-sqs-sub-pub
More information about jeylabs/laravel-sns-sqs-sub-pub
Files in jeylabs/laravel-sns-sqs-sub-pub
Package laravel-sns-sqs-sub-pub
Short Description A simple Laravel service provider which adds a new queue connector to handle SNS subscription queues.
License MIT
Informations about the package laravel-sns-sqs-sub-pub
AWS SQS SNS Subscription Queue and publisher
simple extension to the Illuminate/Queue queue system used in Laravel and Lumen.
Using this connector allows SQS messages originating from a SNS subscription to be worked on with Illuminate\Queue\Jobs\SqsJob.
This is especially useful in a miroservice architecture where multiple services subscribe to a common topic with their queues and publish an event to SNS.
Requirements
- Laravel (tested with version 5.8)
- or Lumen (tested with version 5.8)
Installation
You can install the package via composer
You can optionally publish the config file with:
This is the contents of the published config file:
Configuration
You'll need to configure the queue connection in your config/queue.php
Once the sns-sqs-sub-pub queue connector is configured you can start using it by setting queue driver to 'sns-sqs-sub-pub' in your .env file.
Job class example
Published event
You'll need to configure .env file
All versions of laravel-sns-sqs-sub-pub with dependencies
illuminate/queue Version ^5.4
illuminate/support Version ^5.4
aws/aws-sdk-php Version ^3.91
ext-json Version *