Queen MQ is a PostgreSQL-backed message queue client for Node.js (v0.15.0, stable), offering FIFO partitions, consumer groups, exactly-once semantics, and streaming with windowed aggregation. It provides a fluent promise-based API with support for transactions, dead letter queues, message tracing, and client-side buffering. Designed for high performance (200K+ msgs/sec), it requires Node.js 22+. Unlike Bull or Bee-Queue, Queen MQ uses PostgreSQL as its backend and offers Kafka-like consumer groups with independent progress tracking.
npm install queen-mqNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a queue, pushes a message, and sets up a consumer with auto-ack.
Use import { Queen } from 'queen-mq' or update to ESM.Always pass a server URL explicitly.
Call consumer.close() in a finally block or use a resource manager.
Convert partition keys with String() before calling .partition().
Wrap the message in an array: push([message]).
Switch to import syntax or use .mjs extension.
Chain methods correctly: queen.queue('name').consume(...).Use String(partitionKey) when calling .partition().
No dependency data recorded yet.