Download the PHP package jagarzonpapp/laravel-sqs-sns-subscription-queue without Composer
On this page you can find all versions of the php package jagarzonpapp/laravel-sqs-sns-subscription-queue. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jagarzonpapp/laravel-sqs-sns-subscription-queue
More information about jagarzonpapp/laravel-sqs-sns-subscription-queue
Files in jagarzonpapp/laravel-sqs-sns-subscription-queue
Package laravel-sqs-sns-subscription-queue
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-sqs-sns-subscription-queue
AWS SQS SNS Subscription Queue
A 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.
Understand that this package will not handle publishing to SNS, please use the AWS SDK to publish an event to SNS.
Requirements
- Laravel (tested with version 5.8)
- or Lumen (tested with version 5.8)
Usage
Add the LaravelSqsSnsSubscriptionQueue ServiceProvider to your application.
Laravel
Registering Service Providers in Laravel
Lumen
Registering Service Providers in Lumen
Configuration
You'll need to configure the queue connection in your config/queue.php
Once the sqs-sns queue connector is configured you can start using it by setting queue driver to 'sqs-sns' in your .env file.
Job class example
Message transformation
When SNS publishes to SQS queues the received message signature is as follows:
Illuminate\Queue\Jobs\SqsJob requires the following signature:
Installation
The best way to install laravel-sqs-sns-subscription is by using Composer.
To install the most recent version:
All versions of laravel-sqs-sns-subscription-queue with dependencies
illuminate/queue Version ^5.6|^6.0
illuminate/support Version ^5.6|^6.0
aws/aws-sdk-php Version ^3.62