Skip to content

Commit 69ea5f4

Browse files
committed
🚧 wip
1 parent 01b8125 commit 69ea5f4

File tree

2 files changed

+18
-14
lines changed

2 files changed

+18
-14
lines changed

README.md

+17-13
Original file line numberDiff line numberDiff line change
@@ -6,46 +6,47 @@
66

77
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.
88

9-
Key Features:
9+
### Key Features:
1010

11-
Effortless Webhook Integration:
11+
#### Effortless Webhook Integration:
1212

1313
Easily integrate external webhooks into your Laravel application without compromising on performance.
1414

15-
Queue-Based Processing:
15+
#### Queue-Based Processing:
1616

1717
Harness the power of Amazon SQS to queue incoming webhooks, allowing for asynchronous and parallel processing, ensuring optimal response times.
1818

19-
Reliability and Scalability:
19+
#### Reliability and Scalability:
2020

2121
SQS provides a robust and scalable infrastructure, ensuring that your application can handle varying webhook loads without compromising on stability.
2222

23-
Seamless Laravel Integration:
23+
#### Seamless Laravel Integration:
2424

2525
Designed as a Laravel extension, the Webhook Queue Reader seamlessly integrates into your Laravel project, following Laravel's coding standards and conventions.
2626

27-
Configurable Settings:
27+
#### Configurable Settings:
2828

2929
Customize the extension's settings to align with your application's requirements, including queue names, visibility timeout, and other SQS-specific configurations.
3030

31-
Detailed Logging:
31+
#### Detailed Logging:
3232

3333
Gain insights into the webhook processing flow with detailed logging, helping you troubleshoot and monitor the system effectively.
3434

35-
How It Works:
35+
### How It Works:
3636

37-
Webhook Registration:
37+
#### Webhook Registration:
3838

3939
Register external webhooks with your Laravel application by providing the webhook URL.
4040

41-
SQS Queue Integration:
41+
#### SQS Queue Integration:
4242

4343
Incoming webhooks are efficiently processed through the SQS queue, ensuring optimal handling of webhook payloads.
44-
Asynchronous Processing:
44+
45+
#### Asynchronous Processing:
4546

4647
Leverage the asynchronous processing capabilities of SQS to handle webhooks in the background, preventing any impact on your application's response times.
4748

48-
Automatic Retries:
49+
#### Automatic Retries:
4950

5051
Benefit from SQS's automatic retries, ensuring that failed webhook processing attempts are retried without manual intervention.
5152

@@ -182,7 +183,7 @@ Run the following commnd for testing the dispatched job.
182183

183184
`php artisan queue:work sqs-json`
184185

185-
For production, use supervisor with the following configuration.
186+
For `production`, use supervisor with the following configuration.
186187

187188
```
188189
[program:sqs-json-reader]
@@ -201,6 +202,9 @@ stopwaitsecs=3600
201202
priority=1000
202203
```
203204

205+
If you are using multiple connection, then duplicate above supervisor
206+
configutation and change the connection name.
207+
204208
### Receiving from SQS
205209

206210
If a 3rd-party application or API Gateway to SQS implementation is creating

src/Sqs/Connector.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public function connect(array $config)
2020
{
2121
$config = $this->getDefaultConfiguration($config);
2222

23-
if ($config['key'] && $config['secret']) {
23+
if (isset($config['key'], $config['secret'])) {
2424
$config['credentials'] = Arr::only($config, ['key', 'secret']);
2525
}
2626

0 commit comments

Comments
 (0)