Queen Message Queue
7.1K
A modern, performant message queue system built on PostgreSQL
š Complete Documentationā ⢠š Quick Startā ⢠āļø Comparisonā
Queen MQ is a modern PostgreSQL-backed Message Queue, high-performance, feature-rich system with unlimited FIFO partitions, consumer groups, transactions, tracing and streaming capabilities with exact-once delivery guarantees.
Born at Smartnessā to power Smartchat, Queen solves a unique problem: unlimited FIFO partitions where slow processing in one partition doesn't block others.
Perfect for:
Run PostgreSQL and Queen server in Docker:
# Start PostgreSQL and Queen
docker network create queen
docker run --name postgres --network queen \
-e POSTGRES_PASSWORD=postgres -p 5432:5432 -d postgres
docker run -p 6632:6632 --network queen \
-e PG_HOST=postgres -e PG_PASSWORD=postgres \
smartnessai/queen-mq
Install client:
npm install queen-mq
Use the client:
import { Queen } from 'queen-mq'
const queen = new Queen('http://localhost:6632')
// Create queue
await queen.queue('orders')
.config({ leaseTime: 30, retryLimit: 3 })
.create()
// Push with guaranteed order per partition
await queen.queue('orders')
.partition('customer-123')
.push([{ data: { orderId: 'ORD-001', amount: 99.99 } }])
// Consume with consumer groups
await queen.queue('orders')
.group('order-processor')
.concurrency(10)
.batch(20)
.consume(async (message) => {
await processOrder(message.data)
})
Compare with Kafka, RabbitMQ, NATS āā
| Metric | Value |
|---|---|
| Throughput | 100K+ msg/s sustained |
| Latency | 10-50ms (POP/ACK), 50-200ms (TRANSACTION) |
| Partitions | Unlimited |
A modern Vue 3 dashboard for monitoring and managing Queen MQ:

Queen is currently running in production at Smartnessā , handling 200k messages daily.
Queen MQ is released under the Apache 2.0 Licenseā .
Built with ā¤ļø by Smartnessā
Why "Queen"? Because years ago, when I first read "queue", I read it as "queen" in my mind.
Content type
Image
Digest
sha256:7397bcebbā¦
Size
55.5 MB
Last updated
2 months ago
docker pull smartnessai/queen-mq