Sqs-queue-parallel is a Node.js library built on top of Amazon AWS SQS that provides concurrent and parallel message polling. It allows you to create multiple SQS queue watchers (concurrency) each capable of receiving multiple messages (maxNumberOfMessages). This configuration enables parallel processing of messages, e.g., 2 concurrent watchers each fetching up to 4 messages can handle up to 8 message events in parallel. The library is at version 0.1.6 (released via npm) and appears to be stable but with no recent updates. It differentiates from standard AWS SDK polling by offering built-in concurrency and event-driven message handling.
npm install sqs-queue-parallelNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic setup: create SqsQueueParallel instance with AWS credentials, listen for 'message' events, delete and advance to next message, and send a message.
Consider migrating to a more modern SQS library or use the AWS SDK v3 directly if you need latest features.
Always ensure `e.next()` is called exactly once per message event, even on error.
Start with small values (e.g., concurrency=1, maxNumberOfMessages=1) and increase gradually while monitoring resource usage.
Plan for process termination; or fork and kill subprocesses. There is no graceful shutdown API.
Consider using AWS SDK's default credential chain (e.g., environment variables, EC2 instance role) instead of hardcoding keys.
Use `new SqsQueueParallel({...})` instead of `SqsQueueParallel({...})`.Provide a `name` property in the options object: `{ name: 'my-queue' }`.Check that `e.data` exists and contains the expected properties; see AWS SDK ReceiveMessageResult structure.
Verify the region is correct and the host has outbound internet access. Check firewall settings.