{"repo":"bbc/sqs-consumer","free":true,"listed":false,"github":"https://github.com/bbc/sqs-consumer","clone":"git clone https://github.com/bbc/sqs-consumer.git","description":"Build Amazon Simple Queue Service (SQS) based applications without the boilerplate","language":"TypeScript","stars":1907,"topics":["sqs","nodejs","ignorearchive","aws-sqs","backend","message-queue","queue-consumer","serverless"],"license":null,"category":"dev-tools","readme_excerpt":"sqs-consumer Build SQS-based applications without the boilerplate. Just define an async function that handles the SQS message processing. Installation To install this package, simply enter the following command into your terminal (or the variant of whatever package manager you are using): If you would like to use JSR instead, you can find the package here. Node version We will only support Node versions that are actively or security supported by the Node team. You can find the list of versions that are actively supported here. Documentation Visit https://bbc.github.io/sqs-consumer/ for the full API documentation. Usage - Polling Behavior : The queue is polled continuously for messages using long polling. - Message Processing Behavior : By default messages are processed one at a time – a new message won't be received until the first one has been processed. To process messages in parallel, use the batchSize option detailed here. - It's also important to await any processing that you are doing to ensure that messages are processed one at a time. - Message Acknowledgment Behavior : - When alwaysAcknowledge is false (the default) - Returning undefined , an empty object {} , or an empty array [] : Message(s) will NOT be deleted (left on queue for retry) - For batch processing, return undefined or [] to prevent acknowledgment of all messages. - For single message handling, return undefined or {} to prevent acknowledgment. - Returning the message object (or an array of messages in ba","default_branch":null,"files":null,"tree":[],"storefront":"/r/bbc","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/bbc/sqs-consumer/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}