qmetrics.net

SQS Consumer

Node library for Amazon SQS queue consumers

SQS Consumer screenshot

SQS Consumer is a Node package that polls AWS SQS and runs your async handler on each message, with control over batching, acknowledgments, and shutdown.

Overview

SQS Consumer helps you build applications on Amazon Simple Queue Service without repeating boilerplate for polling, handling, and deleting messages. You create a consumer with a queue URL and an async function that processes each message, then start polling.

By default the queue is polled with long polling and messages are handled one at a time until processing finishes; a batchSize option enables parallel processing when you await work in the handler. Return values from the handler control whether messages are deleted: returning the message object acknowledges it, while undefined or empty objects leave messages on the queue for retry. Options include alwaysAcknowledge, strictReturn, FIFO queue support with handleMessageBatch, and configurable AWS credentials via the SDK or a custom SQS client.

The consumer is an EventEmitter that reports errors, processing errors, and timeout errors. You can stop polling with consumer.stop(), including graceful shutdown patterns that wait for in-flight handlers via pollingCompleteWaitTimeMs. IAM permissions needed include sqs:ReceiveMessage, DeleteMessage, ChangeMessageVisibility, and related batch actions on the queue.

Install via npm or JSR. The library documents Node versions that remain actively or security supported by the Node team.

Key features

  • Long-polling SQS queue consumer
  • Configurable batch processing
  • Handler-driven message acknowledgment
  • FIFO queue support options
  • AWS SDK credential integration
  • Graceful shutdown hooks
  • Runtime status and option updates
  • EventEmitter for errors and lifecycle

Use cases

  • Process background jobs from SQS
  • Build serverless queue workers in Node
  • Implement graceful worker shutdown
  • Consume FIFO queues in order
  • Integrate SQS with custom AWS credentials

Tags

Similar software

whatsapp-web.js

Node.js client for WhatsApp Web automation

whatsapp-web.js drives WhatsApp Web through Puppeteer so Node programs can send, receive, and manage chats with many web-client features. It targets multi-device accounts and documents session auth strategies.

★ 23k⟳ 3 days agoApache-2.0
Integration PlatformsDesktop/CLI app

OpenWA

Self-hosted WhatsApp REST gateway with dashboard and webhooks

OpenWA connects unofficial WhatsApp clients to a NestJS API with multi-session support, webhooks, and a React dashboard. Storage, database, cache, and engine adapters are chosen via configuration.

★ 17.5k⟳ 3 days agoMIT

Evolution API

Open REST API for WhatsApp and multi-channel messaging

Evolution API is a Node.js messaging API supporting Baileys WhatsApp Web, Meta Cloud API, webhooks, queues, and integrations with chatbots and CRM tools.

★ 10.2k⟳ 4 days agoApache-2.0

Cote

Zero-configuration Node.js microservice communication library

Node.js library for microservices that discover peers automatically and exchange messages without central registries, queues, or reverse proxies. It provides request-response and publish-subscribe patterns over lightweight TCP.

★ 2.4k⟳ 2 years agoMIT
Integration PlatformsNo commits in 18+ monthsDesktop/CLI app

Hook0

Webhook server with JSON REST API and dashboard

Hook0 helps SaaS products offer webhooks to end users. It delivers events, handles retries, stores delivery history, and exposes a dashboard for operators and subscribers.

★ 1.5k⟳ todaySource-available

n8n

Fair-code AI workflow and agent automation platform

n8n is a fair-code platform for building AI agents and automated workflows. It pairs a visual editor with custom code and links to many integrations.

★ 212.4k⟳ todaySource-available
Alternative to:IFTTTMake+2