PGMQ vs Valkey
PGMQ: An SQS-style message queue implemented as a lightweight Postgres extension. Valkey: The Linux Foundation's BSD-licensed fork of Redis, now the default engine on AWS and Google Cloud.
key differences
- PGMQ is primarily a relational database; Valkey is key-value.
- Valkey is built for larger datasets (≤ 10 TB) than PGMQ (≤ 100 GB).
- Horizontal scaling is none in PGMQ and native in Valkey.
- Transactions: PGMQ offers full ACID; Valkey offers limited.
- Only PGMQ has json.
- Only Valkey has geospatial, stored procedures, ttl / expiry, pub/sub, in-memory.
choose pgmq for
- +Background job queues for Postgres-backed apps
- +Outbox pattern without a separate broker
- +Lightweight task queues on Supabase
best at · Queue
choose valkey for
- +Replacing Redis OSS without license concerns
- +Application caching and session storage
- +Rate limiting, counters and leaderboards
- +Pub/sub fan-out and Streams-based queues
best at · Cache, Sessions, Queue
PGMQ vs Valkey: FAQ
What is the difference between PGMQ and Valkey?
PGMQ: An SQS-style message queue implemented as a lightweight Postgres extension. Valkey: The Linux Foundation's BSD-licensed fork of Redis, now the default engine on AWS and Google Cloud. PGMQ is primarily a relational database; Valkey is key-value. Valkey is built for larger datasets (≤ 10 TB) than PGMQ (≤ 100 GB). Horizontal scaling is none in PGMQ and native in Valkey.
When should I choose PGMQ over Valkey?
Choose PGMQ for background job queues for Postgres-backed apps, outbox pattern without a separate broker and lightweight task queues on Supabase. Choose Valkey for replacing Redis OSS without license concerns; application caching and session storage; and rate limiting, counters and leaderboards.
Is PGMQ or Valkey more popular?
Valkey ranks #16 on the WhichDB Score (58.0/100) and PGMQ ranks #145 (21.1/100). Popularity is not fit: check the requirements that matter for your project.
Are PGMQ and Valkey open source?
Yes. PGMQ is open source. License: PostgreSQL License. Yes. Valkey is open source. License: BSD 3-Clause.