This is a loopback-next extension for consuming events from AWS SQS Queue. This extension is using sqs-consumer for polling messages from SQS Queue, so please check for more about configurations and usages.
Install
npm install --save loopback4-sqs-consumer
Usage
In order to use this component into your LoopBack application, please follow below steps.
NOTE: Component need to configure with AWS SQS object.
Create provider for consuming SQS Events
We need to create providers to consume events. Providers are decorated with consumeQueue, which will bind to application context, so it can be managed by the SqsConsumerComponent life cycles including start and stop polling.