PHPackages                             ratheeps/laravel-pub-sub-messaging - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Queues &amp; Workers](/categories/queues)
4. /
5. ratheeps/laravel-pub-sub-messaging

ActiveLibrary[Queues &amp; Workers](/categories/queues)

ratheeps/laravel-pub-sub-messaging
==================================

A simple Laravel service provider which adds a new queue connector to handle SNS subscription queues.

1.0.4(4y ago)06MITPHPPHP &gt;=7.0|&gt;=8.0

Since Dec 2Pushed 4y ago1 watchersCompare

[ Source](https://github.com/ratheeps/laravel-pub-sub-messaging)[ Packagist](https://packagist.org/packages/ratheeps/laravel-pub-sub-messaging)[ RSS](/packages/ratheeps-laravel-pub-sub-messaging/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (7)Versions (6)Used By (0)

Laravel Pub/Sub Messaging with AWS
==================================

[](#laravel-pubsub-messaging-with-aws)

Simple extension to the [Illuminate/Queue](https://github.com/illuminate/queue) queue system used in [Laravel](https://laravel.com) and [Lumen](https://lumen.laravel.com/).

Using this connector allows [SQS](https://aws.amazon.com/sqs/) messages originating from a [SNS](https://aws.amazon.com/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.

Amazon SQS &amp; SNS Extended Client Library
--------------------------------------------

[](#amazon-sqs--sns-extended-client-library)

The **Amazon SQS Extended Client Library for Laravel** enables you to manage Amazon SQS message payloads with Amazon S3. This is especially useful for storing and retrieving messages with a message payload size greater than the current SQS limit of 256 KB, up to a maximum of 2 GB. Specifically, you can use this library to:

- Specify whether message payloads are always stored in Amazon S3 or only when a message's size exceeds a max size (defaults to 256 KB).
- Send a message that references a single message object stored in an Amazon S3 bucket.
- Get the corresponding message object from an Amazon S3 bucket.

```
- Note: This package under development not ready for production -
```

Requirements
------------

[](#requirements)

- Laravel (tested with version &gt;=7.0)

Installation
------------

[](#installation)

1. First create a disk that will hold all of your large SQS payloads.

> We highly recommend you use a *private* bucket when storing SQS payloads. Payloads can contain sensitive information and should never be shared publicly.

2. Run `composer require ratheeps/laravel-pub-sub-messaging` to install the package.
3. Then, add the following queue settings to your `queue.php` file.

```
