You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Laravel SQS Queue Reader is a powerful extension designed to seamlessly integrate external webhooks into your Laravel application. By leveraging the reliability and scalability of Amazon Simple Queue Service (SQS), this extension ensures that your application efficiently processes incoming webhooks, minimizing downtime and enhancing overall performance.
8
+
9
+
Key Features:
10
+
11
+
Effortless Webhook Integration:
12
+
13
+
Easily integrate external webhooks into your Laravel application without compromising on performance.
14
+
15
+
Queue-Based Processing:
16
+
17
+
Harness the power of Amazon SQS to queue incoming webhooks, allowing for asynchronous and parallel processing, ensuring optimal response times.
18
+
19
+
Reliability and Scalability:
20
+
21
+
SQS provides a robust and scalable infrastructure, ensuring that your application can handle varying webhook loads without compromising on stability.
22
+
23
+
Seamless Laravel Integration:
24
+
25
+
Designed as a Laravel extension, the Webhook Queue Reader seamlessly integrates into your Laravel project, following Laravel's coding standards and conventions.
26
+
27
+
Configurable Settings:
28
+
29
+
Customize the extension's settings to align with your application's requirements, including queue names, visibility timeout, and other SQS-specific configurations.
30
+
31
+
Detailed Logging:
32
+
33
+
Gain insights into the webhook processing flow with detailed logging, helping you troubleshoot and monitor the system effectively.
34
+
35
+
How It Works:
36
+
37
+
Webhook Registration:
38
+
39
+
Register external webhooks with your Laravel application by providing the webhook URL.
40
+
41
+
SQS Queue Integration:
42
+
43
+
Incoming webhooks are efficiently processed through the SQS queue, ensuring optimal handling of webhook payloads.
44
+
Asynchronous Processing:
45
+
46
+
Leverage the asynchronous processing capabilities of SQS to handle webhooks in the background, preventing any impact on your application's response times.
47
+
48
+
Automatic Retries:
49
+
50
+
Benefit from SQS's automatic retries, ensuring that failed webhook processing attempts are retried without manual intervention.
51
+
7
52
[](https://packagist.org/packages/palpalani/laravel-sqs-queue-json-reader)
Custom SQS queue reader for Laravel projects that supports raw JSON payloads and reads multiple messages. Laravel expects SQS messages to be generated in a
18
-
specific format that includes job handler class and a serialized job.
62
+
Custom SQS queue reader for Laravel projects that supports raw JSON payloads and reads multiple messages. Laravel expects SQS messages to be generated in a specific format that includes job handler class and a serialized job.
19
63
20
64
Note: Implemented to read multiple messages from queue.
21
65
22
66
This library is very useful when you want to parse messages from 3rd party
23
67
applications such as stripe webhooks, shopify webhooks, mailgun web hooks, custom JSON messages and so on.
24
68
25
-
## Installation
69
+
## Getting Started
26
70
27
-
You can install the package via composer:
71
+
Install Custom SQS queue reader for Laravel via composer:
If the queue is not found in 'handlers' array, SQS payload is passed to default handler.
71
116
72
-
Add `sqs-json` connection to your config/queue.php, Ex:
117
+
Register your webhooks with your Laravel application.
118
+
119
+
Add `sqs-json` connection to your config/queue.php, Example:
73
120
74
121
```php
75
122
[
@@ -91,7 +138,9 @@ In your .env file, choose sqs-json as your new default queue driver:
91
138
QUEUE_DRIVER=sqs-json
92
139
```
93
140
94
-
Dispatching to SQS
141
+
Enjoy seamless, reliable, and scalable webhook processing!
142
+
143
+
## Dispatching to SQS
95
144
96
145
If you plan to push plain messages from Laravel, you can rely on DispatcherJob:
97
146
@@ -183,6 +232,12 @@ class SqsHandlerJob extends Job
183
232
}
184
233
```
185
234
235
+
Note:
236
+
237
+
Ensure that your Laravel application is configured with the necessary AWS credentials and permissions to interact with SQS.
238
+
239
+
Enhance your Laravel application's webhook processing capabilities with the Laravel Webhook Queue Reader. Efficient, reliable, and designed for optimal performance!
240
+
186
241
For more information about AWS SQS check [offical docs](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-configure-queue-parameters.html).
0 commit comments