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

Bull

Redis-backed distributed job queue for Node.js

Bull is a Node.js queue library backed by Redis for delayed, prioritized, repeatable, and rate-limited background jobs with sandboxed workers.

  • Redis-backed durable queues
  • Delayed and cron-repeatable jobs
  • Job priorities and rate limiting
JavaScriptDetails →
★ 16.3k⟳ 6 months agoMIT
Open Source Alternative to:Amazon SQS

Asynq

Redis-backed distributed task queue for Go

A Go library for enqueueing background work and processing it with worker pools backed by Redis.

  • Redis-backed task queues
  • Scheduled and periodic tasks
  • Retries and crash recovery
GoCLIDetails →
★ 13.9k⟳ 23 days agoMIT

sarama

Go client library for Apache Kafka

Sarama is a Go module that implements an Apache Kafka client. It includes mocks for tests, example applications, and command-line utilities for diagnostics.

  • Apache Kafka protocol client
  • Go module with semver API
  • Mocks subpackage for unit tests
GoDetails →
★ 12.5k⟳ todayMIT

RQ

Redis-backed background job queue for Python

RQ is a Python library that queues functions for background workers backed by Redis or Valkey. It targets simple setup with scaling patterns for larger deployments.

  • Function calls enqueued to Redis queues
  • Workers with prioritized queue lists
  • Deferred and scheduled job execution
PythonDetails →
★ 10.7k⟳ 6 days agoBSD-2-Clause

BullMQ

Redis-backed distributed job queue for Node and other languages

BullMQ is an open-source message queue and job processor built on Redis, with client libraries for several runtimes.

  • Redis-backed job queues
  • Multi-language producer and worker clients
  • Delayed, scheduled, and repeatable jobs
TypeScriptDetails →
★ 9.7k⟳ todayMIT

MobileIMSDK

Cross-platform instant messaging transport SDK

MobileIMSDK is a lightweight IM protocol stack with UDP, TCP, and WebSocket options, Netty-based server, and client libs for Android, iOS, Java, and related mobile targets.

  • UDP TCP WebSocket protocols
  • Netty-based IM server
  • QoS resend and deduplication
Objective-CAndroid, iOSDetails →
★ 6.1k⟳ 1 month agoApache-2.0