Hemera-sqs package
This is a plugin to use sqs with Hemera.
Amazon Simple Queue Service (SQS) is a fast, reliable, scalable, fully managed message queuing service. Amazon SQS lets you decouple the components of a cloud application. Amazon SQS includes standard queues with high throughput and at-least-once processing, and FIFO queues that provide FIFO (first-in, first-out) delivery and exactly-once processing.
Usage
const hemera = nats// Load config by file or environment variablesconst configPath = '..config.json'hemera
Interface
Documentation
Receive multiple messages
If you want to receive more than one message ensure that you set the maxMessages$
property to -1
Increase timeout
If you want to enable long pooling ensure that you adjust the timeout$
property for your use case.