Amazon SQS
📨 Amazon SQS Channel Integration
This extension enables seamless integration between @nestjstools/messaging
and Amazon Simple Queue Service (SQS). It supports both cloud-based and local queue setups (via ElasticMQ) for reliable, scalable, and distributed messaging.
📦 Installation
or
⚙️ Example Configuration
🛠️ AmazonSqsChannelConfig Properties
name
Name of the SQS channel (e.g., 'sqs-event'
).
—
region
AWS region for the queue (e.g., 'us-east-1'
).
—
queueUrl
Full URL of the SQS queue.
—
credentials
Optional AWS credentials (accessKeyId & secretAccessKey).
—
enableConsumer
Whether to enable consuming messages from this queue.
true
autoCreate
Automatically create the queue if it doesn't exist.
true
maxNumberOfMessages
Number of messages to fetch in a single poll.
1
visibilityTimeout
Time (seconds) to hide a message after retrieval.
20
waitTimeSeconds
Duration (seconds) the consumer waits for messages (long polling).
0
🌐 Cross-Language Communication
To integrate with external (non-NestJS) systems:
Publish a message to the SQS queue.
Set the
messagingRoutingKey
header to match your NestJS handler:
Last updated