qmetrics.net

PGMQ

Postgres-native lightweight message queue

PGMQ screenshot

PGMQ implements queues as SQL objects inside PostgreSQL with send, read, visibility timeouts, archiving, and FIFO or topic routing features.

Overview

PGMQ is a message queue implemented as PostgreSQL SQL objects, described as similar in spirit to AWS SQS or RSMQ but running entirely inside Postgres. It avoids separate brokers or background workers beyond the database itself.

Each named queue maps to tables under a dedicated schema. Producers call SQL functions to enqueue JSON messages; consumers read with a visibility timeout so a message stays hidden until processed or the timeout expires. Functions also support popping, deleting, archiving to per-queue archive tables, batch operations, and dropping queues.

FIFO queues with message group keys and topic-based routing with wildcard patterns are documented for ordered processing and publish-subscribe style delivery. Messages remain until explicitly removed or archived, supporting replay from archive tables.

You can install PGMQ as a Postgres extension or apply its SQL definitions directly when extensions are unavailable. A Docker image provides Postgres with the extension pre-installed, and client libraries exist in several languages for application code.

Key features

  • Queues as Postgres tables and functions
  • Visibility timeout consumer pattern
  • JSON message payloads
  • Archive tables for retention
  • FIFO queues with group keys
  • Topic routing with wildcards
  • Postgres extension or SQL install
  • Docker image with extension bundled

Use cases

  • Job queues without RabbitMQ or Redis
  • Exactly-once style processing with vt
  • Event routing inside Postgres-centric stacks
  • Archiving messages for later replay

Tags

Similar software

ntfy

HTTP pub-sub push notification service

Ntfy sends push notifications to phones and desktops via simple HTTP PUT or POST requests and a REST API, without requiring sign-up on the public host.

  • HTTP PUT and POST publishing
  • REST API access
  • Topic-based pub-sub
GoWeb, Android, iOSDetails →
★ 35.9k⟳ yesterdayApache-2.0 · open core
Open Source Alternative to:SuprSend

NSQ

Realtime distributed message queue and pub-sub platform

NSQ is a distributed messaging system built for large-scale throughput. It avoids single points of failure and ships with official Go and Python client libraries.

  • Horizontally scalable decentralized brokers
  • Pub-sub and load-balanced delivery
  • Command-line configuration and deployment
GoLinux, macOS, Windows, DockerDetails →
★ 25.8k⟳ 3 months agoMIT
Open Source Alternative to:Amazon SQS

NATS

High-performance cloud and edge messaging server

The NATS server is the messaging runtime for services and devices, aimed at distributed deployments from data centers to constrained edge hardware

  • Many-to-many async messaging
  • On-premise and cloud deployment
  • Edge and IoT oriented topology
GoDetails →
★ 21.3k⟳ todayApache-2.0
Open Source Alternative to:AblyAmazon SQS+1

OpenIM Server

Developer-oriented instant messaging backend server

OpenIM Server is the backend for embedding chat, groups, and messaging in your apps—not a standalone consumer chat client.

  • Microservice IM backend
  • REST APIs for business logic
  • Event webhooks
GoDockerDetails →
★ 16.8k⟳ 24 days agoApache-2.0

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

Gotify

Self-hosted real-time message server with Web UI

Gotify is a server for sending and receiving messages in real time over WebSocket. It includes a web interface and can run on your own infrastructure.

  • Send messages via REST API
  • Receive messages via WebSocket
  • Web UI for administration
GoWebDetails →
★ 16.3k⟳ 2 days agoMIT