message-queues, messaging, kafka, distributed-systems, system-design
Message Queues - A Field Guide to the Options Out There
A practical guide to message queues covering core concepts, delivery guarantees and ordering, and how Kafka, RabbitMQ, Pulsar, NATS, Redis Streams and cloud services compare.
Why message queues exist
A message queue lets one part of a system hand work or facts to another without both being up, fast, or even aware of each other at the same moment. That single property — decoupling in time, rate and location — is why almost every system past a certain size ends up with one.
Without a broker, a checkout service that calls the email, inventory and analytics services directly fails when any of them is slow or down. With a broker in between, checkout publishes an "order placed" message and moves on. Each downstream service reads it at its own pace, retries on its own schedule, and can be added or removed without touching checkout.
The benefits people usually reach for:
- Load levelling. A burst of 50,000 requests becomes a backlog that workers drain at a steady rate instead of an outage.
- Resilience. A consumer that crashes picks up where it left off; nothing is lost while it is down.
- Fan-out. One event can feed many independent consumers — billing, search indexing, fraud scoring — each with its own position.
- Asynchronous work. Slow jobs (video transcoding, PDF generation, ML inference) move off the request path.
- Integration. Teams agree on message contracts rather than on each other's APIs and deploy schedules.
The cost is real too: another piece of infrastructure to run, eventual consistency instead of immediate answers, and a new class of bugs around duplicates, ordering and poison messages. The rest of this guide covers the concepts that decide those trade-offs, the main systems available in late 2026, and how to pick between them.
Core concepts
Most confusion about messaging systems comes from mixing up three different models that all get called "queues". Knowing which one a product is built on predicts most of its behaviour.
Three messaging models
| Model | What happens to a message | Typical consumers | Classic examples |
|---|---|---|---|
| Work queue (point-to-point) | Delivered to one consumer, deleted once acknowledged | A pool of competing workers sharing the load | RabbitMQ classic/quorum queues, Amazon SQS, ActiveMQ queues |
| Publish/subscribe | Copied to every subscription; each copy is consumed once | Independent services that all care about the same event | SNS, Google Pub/Sub, RabbitMQ fanout/topic exchanges, NATS Core |
| Distributed log (stream) | Appended to a durable, ordered log and kept for a retention period; readers track their own offset | Many groups reading at their own pace, including replays from the past | Apache Kafka, Pulsar, Kinesis, Redpanda, RabbitMQ Streams, NATS JetStream |
The log model is the big conceptual shift of the last 15 years. Because messages are not deleted on read, a new consumer can replay last week's events, and a bug fix can be followed by reprocessing. The price is that per-message features — individual acks, per-message delays, priorities — are harder, which is exactly what work queues are good at. Several systems now offer both models on one platform.
Delivery guarantees
- At-most-once. Fire and forget. Fast, but a crash can lose messages. Fine for metrics or presence updates.
- At-least-once. The broker redelivers until the consumer acknowledges. Nothing is lost, but duplicates happen. This is the default for almost every system, so consumers should be idempotent (for example, dedupe on a message ID or use upserts).
- Exactly-once. Achievable only within a boundary. Kafka transactions give exactly-once from topic to topic; SQS FIFO and NATS JetStream deduplicate within a time window. Once a side effect leaves the broker (an email, a payment API call), you are back to at-least-once plus idempotency.
Ordering
Global ordering does not scale, so systems order within a partition key: a Kafka partition, an SQS FIFO message group, a Pulsar key-shared subscription, a Service Bus session. Pick the key so that the things that must stay in order (all events for one customer, one account, one device) share it. Retries and parallel consumers can still reorder messages unless the system holds back later messages for that key.
Acknowledgement, retries and dead letters
A consumer acknowledges a message after processing it. If it does not — because it crashed or timed out — the broker redelivers. A message that keeps failing (a poison message) should move to a dead-letter queue (DLQ) after N attempts so it stops blocking everything behind it. Visibility timeouts (SQS), consumer timeouts and redelivery counts (RabbitMQ quorum queues), and max-deliver settings (JetStream) are the knobs here.
Retention and replay
Work queues keep a message until it is consumed. Logs keep messages for a time or size limit (hours to forever), or compact them so only the latest value per key survives. Long retention turns the broker into a source of truth that can rebuild downstream databases.
Backpressure and flow control
When consumers fall behind, something has to give. Pull-based consumers (Kafka, SQS, JetStream pull) naturally take only what they can handle. Push-based systems use prefetch limits (RabbitMQ basic.qos) or credit-based flow control (AMQP 1.0). Watch consumer lag — the gap between newest and processed message — as the main health metric.
Protocols
- AMQP 0-9-1 — RabbitMQ's long-standing protocol.
- AMQP 1.0 — an OASIS/ISO standard; used by Azure Service Bus, ActiveMQ Artemis, Solace and natively by RabbitMQ 4.x.
- MQTT — lightweight pub/sub for IoT devices; supported by RabbitMQ, NATS, HiveMQ, EMQX and others.
- STOMP — simple text protocol, common for browser clients.
- Kafka wire protocol — now a de facto standard in its own right, implemented by Redpanda, WarpStream, AutoMQ, Azure Event Hubs and others.
- JMS — a Java API (not a wire protocol) that many enterprise brokers implement.
The landscape at a glance
Messaging systems fall into four families: classic message brokers built around queues and routing, distributed logs built for replayable high-volume streams, lightweight options you may already run, and cloud-managed services. The lines are blurring, as the highlighted systems show.

The sections that follow take the most widely used systems in turn, then compare them side by side.
Apache Kafka and the Kafka-compatible family
Kafka is the default choice for high-volume event streaming, and in 2026 it also became a credible work queue. The current release is Kafka 4.4, shipped on 22 October 2026 (announcement).
How it works. Producers append records to topics, which are split into partitions. Each partition is an ordered, replicated, append-only log stored on broker disks. Consumers in a consumer group divide the partitions between them and commit offsets to record progress. Records stay for a configured retention period (or forever with log compaction), so any number of groups can read and replay independently.
What changed recently.
- No more ZooKeeper. Kafka 4.0 (March 2025) was the first major release to run entirely on the built-in KRaft consensus layer (Kafka 4.0). One fewer distributed system to operate.
- Queues for Kafka (KIP-932). Share groups let many consumers read the same partition, acknowledge records individually and count delivery attempts — classic work-queue behaviour on top of a log. Early access in 4.0, production-ready in 4.2 (February 2026) (Kafka 4.2). In 4.4, records that exceed the max delivery count or are rejected can go to a dead-letter queue once the
share.versionfeature is upgraded to 2 (Confluent on 4.4). - Diskless topics (KIP-1150). Accepted in March 2026, this lets topics store data directly in object storage such as S3 instead of replicated broker disks, cutting cross-zone network costs (Aiven). As of late August 2026 it was not yet generally available, and its core sub-KIPs were still under discussion (SoftwareMill).
- Ownership. IBM completed its roughly $11 billion acquisition of Confluent, the main commercial Kafka company, on 17 March 2026 (IBM). Apache Kafka itself remains an ASF project.
Strengths. Very high throughput (millions of messages per second per cluster), durable replay, strong ordering per partition, exactly-once transactions between topics, and by far the largest ecosystem: Kafka Connect for hundreds of sources and sinks, Kafka Streams and Flink for processing, Schema Registry for contracts.
Weaknesses. Operationally heavy compared with simpler brokers. Partition count caps consumer parallelism for regular consumer groups (share groups ease this). Per-message features such as delays and priorities are still limited. Self-hosting at scale needs real expertise.
Best for: event-driven architectures, change data capture, log and metrics pipelines, event sourcing, feeding data lakes and real-time analytics.
Kafka-compatible alternatives
The Kafka wire protocol has become a standard, so several products speak it while replacing the internals:
| Product | What it changes | Licence / model |
|---|---|---|
| Redpanda | C++ rewrite with Raft, no JVM; single binary. Release 26.1 (March 2026) added per-topic choice between low-latency and object-storage "Cloud Topics"; 26.3 shipped in November 2026 | Source-available core, enterprise licence, cloud service |
| AutoMQ | Fork of Kafka with storage moved to S3-compatible object storage; stateless brokers that scale in seconds | Apache 2.0, plus a commercial cloud |
| WarpStream | Stateless agents writing straight to object storage; higher latency, much lower cost. Owned by Confluent (now IBM) | Commercial, bring-your-own-cloud |
| Managed Kafka | Amazon MSK, Confluent Cloud, Aiven, Google Managed Kafka, Azure Event Hubs (Kafka endpoint) | Pay-as-you-go services |
If you want Kafka semantics without operating brokers and disks yourself, these are worth comparing on latency, cost and how much of the Kafka API (transactions, compaction, share groups) each supports.
RabbitMQ
RabbitMQ is the most widely deployed general-purpose message broker, and the best fit when you need flexible routing and per-message control rather than raw streaming throughput. The current series is RabbitMQ 4.4, released 20 October 2026, which extends quorum queues and JMS support (RabbitMQ blog).
How it works. Producers publish to exchanges, not queues. Exchanges route messages to queues through bindings: direct (exact routing key), topic (wildcard patterns like orders.*.eu), fanout (every bound queue) and headers (match on message headers). Consumers receive messages pushed from queues, with a prefetch limit for flow control, and acknowledge them individually.
Queue types.
- Quorum queues — Raft-replicated, durable and the recommended default for anything that matters. Since RabbitMQ 4.0, mirrored classic queues are gone and quorum queues are the only replicated durable queue type; they now support message priorities as well as consumer priorities (AWS on RabbitMQ 4.2). Release 4.3 raised that to 32 strict priority levels (4.3 highlights).
- Classic queues — single-node, fast, fine for transient or easily rebuilt data.
- Streams — an append-only, replayable log inside RabbitMQ, for Kafka-like fan-out and replay at moderate scale. Recent releases added server-side SQL filter expressions so only relevant messages leave the broker.
What changed recently.
- AMQP 1.0 is a core protocol from 4.0 onward, alongside AMQP 0-9-1, MQTT 5.0 and STOMP.
- Khepri replaced Mnesia. The Raft-based metadata store became the default in 4.2 (CloudAMQP) and, as of 4.3 (April 2026), is the only option: Mnesia and the old partition-handling strategies were removed. That makes clusters behave far more predictably during network partitions.
- Ownership. RabbitMQ is open source (MPL 2.0) and maintained by Broadcom, which sells it commercially as VMware Tanzu RabbitMQ. Managed options include CloudAMQP and Amazon MQ, which supports 4.3 as of September 2026 (AWS).
Strengths. Rich routing, per-message acks, TTLs, priorities, dead-letter exchanges, delayed delivery via plugin, request/reply patterns, many protocols, mature client libraries in every language, and an excellent management UI.
Weaknesses. Throughput per queue is lower than log-based systems (tens of thousands of messages per second per queue is typical). Long backlogs cost memory and disk. Horizontal scale comes from more queues, not a single giant queue.
Best for: task and job queues, microservice commands, RPC over messaging, IoT via MQTT, and any workload that needs routing logic in the broker.
Apache Pulsar
Pulsar is the system to look at when you want streaming and queuing in one platform, with multi-tenancy and geo-replication built in. The current feature line is Pulsar 4.2, first released on 1 April 2026, with patch 4.2.4 in August 2026 (release notes).
How it works. Pulsar separates serving from storage. Stateless brokers handle producers and consumers; Apache BookKeeper nodes ("bookies") store data as replicated segments; a metadata store (ZooKeeper, etcd or Oxia) holds cluster state. Because brokers hold no data, you can add or replace them without moving partitions around, and old segments can be offloaded to object storage (tiered storage).
Subscription types are its defining feature — the same topic can be consumed in different ways:
- Exclusive / Failover — one active consumer, strict order (stream style).
- Shared — messages spread round-robin across consumers with individual acks (queue style).
- Key_Shared — spread across consumers, but all messages with the same key go to the same consumer, preserving per-key order.
It also offers per-message delayed delivery (4.2 added granular and fixed-delay delivery policies through PIP-437, per the 4.2.0 notes), dead-letter and retry topics, negative acks, schema registry, Pulsar Functions for lightweight processing, and Pulsar IO connectors.
Multi-tenancy and geo-replication. Topics live under tenants and namespaces with their own quotas, auth and retention policies, which suits platform teams serving many internal customers. Cross-region replication is a built-in namespace setting rather than a bolt-on tool.
Strengths. Unified queue + stream model, independent scaling of compute and storage, millions of topics per cluster, strong multi-tenancy and geo-replication.
Weaknesses. More moving parts (brokers, bookies, metadata store) and a smaller community and connector ecosystem than Kafka. Fewer engineers know how to run it. The main commercial backer is StreamNative.
Best for: SaaS platforms with many tenants, organisations that want one system for both queue and stream workloads, and global deployments needing native geo-replication.
NATS and JetStream
NATS is the lightweight option: a single small Go binary that handles pub/sub, request/reply and, with JetStream, durable streams and work queues. The latest release line is NATS Server 2.15 (17 September 2026), a release focused on reliability and operations rather than new features (NATS blog).
Two layers.
- NATS Core — at-most-once, in-memory pub/sub with subject-based addressing (
orders.eu.created, wildcardsorders.*.createdandorders.>). Built-in request/reply and queue groups for load-balanced subscribers. Extremely low latency, no persistence. - JetStream — the persistence layer. Streams capture subjects to disk with Raft replication; consumers (push or pull, durable or ephemeral) track their own position. Retention can be by limits, by interest, or as a work queue where each message is removed once acknowledged. JetStream also provides a key-value store and an object store on the same engine.
What changed recently. 2.11 added consumer priority groups (pinned consumers with overflow). 2.12 (September 2025) added atomic batch publishing, counter streams and strict validation of JetStream requests by default (What's new in 2.12). 2.14 (April 2026) added high-throughput JetStream publishing and expanded server-side message scheduling; version 2.13 was skipped (What's new in 2.14).
Topology. Servers form clusters, clusters join into superclusters across regions, and leaf nodes extend the network to edge sites, factories or devices that connect intermittently. Multi-tenancy comes from accounts with decentralised JWT-based security.
Strengths. Tiny footprint, very simple to run, microsecond-to-millisecond latency, one system for messaging + persistence + KV, excellent for edge and hybrid cloud. Native MQTT and WebSocket support.
Weaknesses. Smaller connector ecosystem than Kafka. JetStream throughput per stream is high but not Kafka-scale for very large analytic pipelines. Fewer managed-service options (Synadia Cloud is the main one).
Best for: microservice communication, edge and IoT, control planes, hybrid and multi-cloud backbones, and teams that want one lean system instead of a broker plus a cache plus a KV store.
Redis Streams, Valkey and job-queue libraries
If you already run Redis or Valkey, you may not need a separate broker at all for moderate workloads. Many teams also never touch a broker directly: they use a job-queue library that sits on top of one.
Redis Streams. Since Redis 5.0, the XADD / XREADGROUP / XACK commands give you a small in-memory log with consumer groups, a pending-entries list for unacknowledged messages, and XAUTOCLAIM to hand stuck messages to another consumer. It behaves like a mini-Kafka with per-message acks. Older patterns — lists with BLMOVE for queues, and Pub/Sub for fire-and-forget broadcast — still work for simple cases.
Which Redis? The licensing story matters for some teams:
- Redis returned to an OSI-approved licence with Redis 8, adding AGPLv3 alongside its source-available RSALv2/SSPLv1 options (Redis).
- Valkey is the Linux Foundation fork created in 2024, under the BSD licence. Valkey 9.0 went GA in October 2025 with atomic slot migration and multiple databases in cluster mode (Linux Foundation), and 9.1 followed in May 2026 (Linux Foundation). AWS ElastiCache and Google Memorystore both offer it.
Caveats. Data lives in memory, so backlog size is bounded by RAM. Durability depends on AOF/RDB settings and replication is asynchronous, so a failover can lose recent messages. Treat it as a fast, convenient queue, not a system of record.
Job-queue libraries add retries with backoff, scheduling, priorities, rate limits, dashboards and dead-job handling on top of a broker:
| Library | Language | Backed by |
|---|---|---|
| Sidekiq | Ruby | Redis / Valkey |
| BullMQ | Node.js / TypeScript (also Python, Elixir, PHP ports) | Redis / Valkey |
| Celery | Python | RabbitMQ, Redis, SQS and others |
| RQ / Dramatiq / Huey | Python | Redis (Dramatiq also RabbitMQ) |
| Laravel Queues / Horizon | PHP | Redis, SQS, databases |
| Oban | Elixir | PostgreSQL |
| Hangfire | .NET | SQL Server, Redis, others |
| River / Graphile Worker | Go / Node.js | PostgreSQL |
For most web applications that just need "send this email later" or "resize this image in the background", one of these libraries is the right starting point. Reach for a dedicated broker when several services or languages must share the same messages.
Cloud-managed services
If you live mostly in one cloud, its native messaging services are usually the cheapest to operate: no servers, pay per request or per unit of capacity, and deep integration with that cloud's functions, IAM and monitoring. The trade-off is lock-in and less control over tuning.
AWS
| Service | Model | Notes |
|---|---|---|
| Amazon SQS | Work queue (standard and FIFO) | The original cloud queue, launched July 2006 and now 20 years old (AWS). Near-unlimited throughput on standard queues; FIFO adds ordering per message group and deduplication. Max payload rose from 256 KiB to 1 MiB in August 2025 (AWS). Fair queues (July 2025) stop one noisy tenant from delaying everyone else when you tag messages with a group ID (AWS) |
| Amazon SNS | Pub/sub fan-out | Pushes to SQS, Lambda, HTTP, email, SMS. SNS + SQS is the classic AWS fan-out pattern |
| Amazon EventBridge | Event bus with content-based routing | Rules filter on event content; schema registry; scheduler; integrates SaaS event sources. Good for loosely coupled event-driven apps |
| Kinesis Data Streams | Partitioned log | AWS-native stream with shards; feeds Firehose, Lambda, analytics |
| Amazon MSK | Managed Apache Kafka | Provisioned or serverless Kafka with standard Kafka APIs |
| Amazon MQ | Managed RabbitMQ or ActiveMQ | For lifting existing AMQP/JMS/MQTT apps into AWS; supports RabbitMQ 4.3 |
Google Cloud
| Service | Model | Notes |
|---|---|---|
| Pub/Sub | Global pub/sub with per-subscription acks | Serverless and globally available; push or pull subscriptions; ordering keys, exactly-once delivery on pull, dead-letter topics, filtering, replay via seek. Direct export subscriptions to BigQuery and Cloud Storage, plus Bigtable subscriptions in preview since April 2026 and an AI inference message transform that calls Vertex AI models (release notes) |
| Managed Service for Apache Kafka | Managed Kafka | The migration path for Pub/Sub Lite, which closed to new customers in September 2024 (Google) |
| Cloud Tasks | HTTP task queue | Rate-limited, scheduled delivery of HTTP calls to your services |
| Eventarc | Event routing | Routes Google Cloud and custom events to Cloud Run and other targets |
Microsoft Azure
| Service | Model | Notes |
|---|---|---|
| Service Bus | Enterprise broker: queues + topics/subscriptions | AMQP 1.0, sessions for ordered processing, scheduled messages, transactions, duplicate detection, dead-lettering, messages up to 100 MB on Premium. Premium gained full data geo-replication (GA December 2025) and, from May 2026, a 99.99% SLA in Availability Zone regions (Microsoft). Legacy SDKs and the SBMP protocol were retired on 30 September 2026 (Microsoft FAQ) |
| Event Hubs | Partitioned log | High-throughput ingestion with a Kafka-compatible endpoint, so Kafka clients can connect without code changes |
| Event Grid | Event routing | Push-based event distribution, including an MQTT broker for IoT |
| Storage Queues | Simple work queue | Very cheap, basic, large backlogs; fewer features than Service Bus |
Across all three clouds the pattern is the same: a simple work queue, a pub/sub or event-routing service, and a log-based streaming service (native or managed Kafka). Pick by model first, then by cloud.
Other notable options
Beyond the big names, several systems own important niches — enterprise Java, mainframes, finance, IoT, or simply "use the database you already have".
Apache ActiveMQ and Apache Artemis
The veteran open-source JMS brokers. In late 2025 they split into two separate Apache projects: ActiveMQ ("Classic") and Apache Artemis (formerly ActiveMQ Artemis), which became a top-level project in December 2025 (ASF). Artemis is the higher-performance, non-blocking engine with AMQP, MQTT, STOMP, OpenWire and Core protocols; recent releases moved its Maven group ID to org.apache.artemis (Artemis). Choose these for JMS / Jakarta Messaging applications, Spring and Camel integrations, or when you need an embeddable Java broker. Red Hat AMQ is the commercial distribution.
IBM MQ
The long-standing enterprise standard in banking, insurance, airlines and mainframe (z/OS) shops. Known for once-and-only-once transactional delivery with two-phase commit, rock-solid reliability and very strong security tooling. It is commercial and comparatively expensive, but if your core systems already speak MQ, it is rarely worth displacing. Since the Confluent acquisition, IBM is positioning MQ and Kafka side by side, with day-one integration between them.
Solace PubSub+
An "event mesh" broker available as hardware appliances, software and cloud service. Strong in capital markets and large enterprises for hierarchical topic routing, guaranteed and direct messaging in one product, and dynamic routing between brokers across sites and clouds. Supports AMQP, MQTT, JMS, REST and its own SMF protocol.
Apache RocketMQ
Built at Alibaba for e-commerce peaks and widely used in China. It offers transactional messages, scheduled delivery, ordered messages and tag-based filtering, with a cloud-native proxy/storage split in 5.x. Release 5.5.0 (April 2026) open-sourced LiteTopic, a model for millions of lightweight per-session channels aimed at AI agent workloads (Alibaba Cloud).
MQTT brokers: EMQX, HiveMQ, Mosquitto, VerneMQ
For connected devices, MQTT is the protocol and these are the specialist brokers. They handle millions of persistent device connections, retained messages, last-will messages and QoS levels 0–2, then bridge data into Kafka or a cloud backend. Mosquitto is the lightweight single-node choice; EMQX and HiveMQ target clustered, large-scale deployments.
ZeroMQ (and nanomsg / NNG)
Not a broker at all, but a messaging library: sockets that speak request/reply, pub/sub, push/pull and more directly between processes. Microsecond latency and no server to run, but no persistence or delivery guarantees beyond what you build. Good for high-performance in-cluster communication, trading systems and custom topologies.
Postgres as a queue
For small and medium workloads, the database you already run can be the queue. The pattern relies on SELECT … FOR UPDATE SKIP LOCKED, which lets many workers claim different rows without blocking each other. Options:
- PGMQ — a Postgres extension with an SQS-like API: visibility timeouts, archive instead of delete, no background worker (PGMQ). Supabase offers it as its queue product.
- Job libraries on Postgres — Oban (Elixir), River (Go), Graphile Worker (Node.js), Solid Queue (Rails), pg-boss (Node.js).
The big advantage is transactional enqueueing: the job is committed in the same transaction as the business data, so you never send an email for an order that rolled back. The limits are throughput (thousands, not millions, of messages per second) and extra load and table bloat on your primary database.
Emerging projects
Apache Iggy (incubating) is a Rust-based persistent streaming server aiming for very low latency with a small footprint. Bufstream is a Kafka-compatible broker that writes to object storage and integrates schema validation with Protobuf. Both are worth watching but less proven in production than the systems above.
Side-by-side comparison
No system wins on every axis: Kafka leads on throughput and ecosystem, RabbitMQ on routing flexibility, NATS on simplicity and latency, Pulsar on multi-tenancy, and the cloud services on zero operations. Figures below are typical orders of magnitude, not benchmarks; real numbers depend heavily on message size, durability settings and hardware.
| System | Primary model | Queue semantics | Replay | Ordering | Typical latency | Throughput scale | Ops effort | Licence / hosting |
|---|---|---|---|---|---|---|---|---|
| Apache Kafka 4.x | Distributed log | Yes, via share groups (GA in 4.2) | Yes, long retention + compaction | Per partition | Low ms | Millions msg/s per cluster | High (lower with managed) | Apache 2.0; MSK, Confluent, Aiven, others |
| Redpanda | Distributed log (Kafka API) | Via Kafka API | Yes | Per partition | Sub-ms to low ms | Millions msg/s | Medium | Source-available + enterprise; cloud |
| RabbitMQ 4.x | Broker with exchanges + queues | Native, rich | Streams only | Per queue (single consumer) | Sub-ms to low ms | Tens of thousands msg/s per queue | Medium | MPL 2.0; Tanzu, CloudAMQP, Amazon MQ |
| Apache Pulsar 4.x | Log + queue (subscription types) | Native (Shared, Key_Shared) | Yes, tiered storage | Per partition or per key | Low ms | Millions msg/s | High | Apache 2.0; StreamNative |
| NATS + JetStream | Pub/sub + persistent streams | Work-queue retention, pull consumers | Yes (JetStream) | Per subject/stream | Sub-ms (Core), low ms (JetStream) | Hundreds of thousands to millions msg/s | Low | Apache 2.0; Synadia Cloud |
| Redis Streams / Valkey | In-memory log | Consumer groups with acks | Within memory limits | Per stream | Sub-ms | Hundreds of thousands msg/s | Low (if already running) | Redis AGPL/RSAL/SSPL; Valkey BSD |
| Amazon SQS | Managed work queue | Native (standard, FIFO, fair) | No | FIFO per message group | Tens of ms | Near-unlimited (standard) | None | Proprietary, AWS only |
| Google Pub/Sub | Managed pub/sub | Per-subscription acks | Seek to time/snapshot | Per ordering key | Tens of ms | Very high, global | None | Proprietary, GCP only |
| Azure Service Bus | Managed enterprise broker | Native, sessions, transactions | No | Per session | Tens of ms | Thousands to tens of thousands msg/s per unit | None | Proprietary, Azure only |
| Apache Artemis | JMS broker | Native, JMS | Limited | Per queue / message group | Sub-ms to low ms | Tens to hundreds of thousands msg/s | Medium | Apache 2.0; Red Hat AMQ |
| IBM MQ | Enterprise broker | Native, XA transactions | No | Per queue | Low ms | High, per queue manager | Medium-high | Commercial; IBM Cloud |
| PGMQ / Postgres queues | Table-backed queue | Native (visibility timeout) | Archive table | Approximate | Low ms | Thousands msg/s | Low (if already running) | PostgreSQL licence |
How to choose
Start from the messaging model your workload needs, then narrow by where you run and how much operations work you can absorb. Most teams overbuy: a managed queue or a Postgres-backed job library covers more cases than people expect.
Five questions that settle most decisions
- Do consumers need to replay old messages? If yes, you want a log: Kafka (or a Kafka-compatible system), Pulsar, Kinesis, JetStream or RabbitMQ Streams. If messages can disappear once processed, a work queue is simpler.
- Is this one job for one worker, or one event for many services? Jobs → work queue. Events → pub/sub or a log.
- What volume, really? Under a few thousand messages per second, almost anything works, including Postgres. Hundreds of thousands per second sustained pushes you toward Kafka, Pulsar, Redpanda or a cloud streaming service.
- Are you committed to one cloud? If so, its native services (SQS/SNS/EventBridge, Pub/Sub, Service Bus/Event Hubs) remove all broker operations. If you need portability or on-premises, use open-source systems or their managed versions.
- Who will run it at 3 a.m.? A small team without platform engineers should prefer managed services, NATS or RabbitMQ over self-hosted Kafka or Pulsar.
Quick recommendations by use case
| If you need… | Start with | Also consider |
|---|---|---|
| Background jobs for a web app | A job library (Sidekiq, BullMQ, Celery, Oban) on Redis/Valkey or Postgres | SQS, RabbitMQ |
| Reliable task queue between services | RabbitMQ (quorum queues) or SQS | Azure Service Bus, Kafka share groups |
| Complex routing by topic or header | RabbitMQ | Solace, Azure Service Bus, EventBridge |
| High-volume event streaming, CDC, analytics pipelines | Apache Kafka (managed if possible) | Redpanda, Pulsar, Kinesis, Event Hubs |
| One platform for both queues and streams | Pulsar or Kafka 4.2+ with share groups | NATS JetStream, RabbitMQ with Streams |
| Multi-tenant SaaS backbone | Pulsar | SQS fair queues, NATS accounts |
| Low-latency microservice messaging, request/reply | NATS | ZeroMQ for in-process speed |
| Edge, IoT and intermittently connected sites | NATS leaf nodes or an MQTT broker (EMQX, HiveMQ) | RabbitMQ MQTT, Azure Event Grid MQTT |
| Lowest-cost Kafka at large scale in the cloud | Object-storage Kafka (WarpStream, AutoMQ, Redpanda Cloud Topics) | Kafka tiered storage; diskless topics when GA |
| JMS / enterprise Java integration | Apache Artemis or IBM MQ | Solace, Azure Service Bus (JMS 2.0) |
| Mainframe and core banking | IBM MQ | Kafka alongside it for analytics |
| Exactly-once "save data and send message" together | Transactional outbox in Postgres + any broker, or a Postgres queue | Kafka transactions for topic-to-topic |
| Serverless app on one cloud | SQS + SNS/EventBridge, Pub/Sub, or Service Bus | — |
Patterns that matter more than the product
- Make consumers idempotent. Assume every message can arrive twice.
- Use a transactional outbox when a database write and a message must both happen: write the event to an outbox table in the same transaction, then relay it to the broker.
- Always configure a dead-letter queue and alert on it.
- Version your message schemas (Avro, Protobuf or JSON Schema with a registry) so producers and consumers can evolve independently.
- Monitor consumer lag and queue depth, not just broker health.
Trends shaping messaging in 2026
The big story of 2025–2026 is convergence: logs are learning to be queues, queues are learning to be logs, and storage is moving to object stores.
- Queues and streams are merging. Kafka's share groups reached production in 4.2 and gained dead-lettering in 4.4. RabbitMQ has Streams with server-side filtering. Pulsar and NATS JetStream have offered both models for years. Expect "which model?" to become a per-topic setting rather than a product choice.
- Diskless, object-storage-first brokers. Writing straight to S3-class storage removes cross-zone replication traffic — often the largest line on a cloud Kafka bill — and makes brokers stateless. WarpStream, AutoMQ, Bufstream and Redpanda Cloud Topics ship this today; upstream Kafka accepted KIP-1150 and is building it. The trade-off is higher produce latency, so many platforms now let you choose per topic.
- ZooKeeper and Mnesia are gone. Kafka 4.x runs only on KRaft and RabbitMQ 4.3 runs only on Khepri. Both moved to Raft-based metadata, which simplifies operations and makes failure behaviour more predictable.
- Consolidation and new owners. IBM now owns Confluent, Broadcom owns RabbitMQ's commercial line, and Confluent owns WarpStream. Open-source licences for the core projects are unchanged, but enterprise roadmaps and pricing increasingly follow the parent company's strategy.
- AMQP 1.0 and the Kafka protocol as lingua francas. RabbitMQ made AMQP 1.0 a core protocol; Azure and Artemis already speak it. The Kafka wire protocol is implemented by a growing list of non-Kafka systems. Protocol compatibility increasingly matters more than the broker brand.
- Messaging for AI agents. Vendors are reframing event streams as the real-time context layer for AI: IBM pitches Confluent as data for agents, Redpanda built an "agentic data plane", Google Pub/Sub added inline Vertex AI inference transforms, and RocketMQ's LiteTopic targets millions of agent sessions. Under the marketing, the useful core is old: durable, replayable events and async task queues with retries.
- Durable execution alongside queues. Workflow engines such as Temporal, Restate and AWS Step Functions take over multi-step processes that teams used to stitch together from queues, retries and state tables. Queues remain the transport; orchestration moves up a layer.
- "Just use Postgres" for small systems. PGMQ and Postgres-backed job libraries are a popular first choice because they remove a moving part and give transactional enqueueing for free.
Conclusion
Pick the model first, the product second, and the hosting third. If you need durable replayable events at scale, use Kafka or something that speaks its protocol. If you need flexible routing and per-message control, use RabbitMQ. If you want one lean system from cloud to edge, use NATS. If you serve many tenants and want queues and streams together, look at Pulsar. If you are all-in on one cloud, its native queue is usually the cheapest answer. And if your volume is modest, a job library on Postgres or Redis may be all you ever need.
Whatever you choose, the hard parts are the same: idempotent consumers, dead-letter handling, schema discipline and watching lag. Get those right and switching brokers later becomes a migration, not a rewrite.
Sources
- Apache Kafka 4.0.0 release announcement
- Apache Kafka 4.2.0 release announcement
- Apache Kafka 4.4.0 release announcement and Confluent's 4.4 summary
- Aiven: KIP-1150 accepted and SoftwareMill: diskless Kafka status
- IBM completes acquisition of Confluent
- Redpanda 26.1 and AutoMQ on GitHub
- RabbitMQ blog, RabbitMQ 4.3 highlights, CloudAMQP on RabbitMQ 4.2, Amazon MQ RabbitMQ 4.2 and 4.3
- Apache Pulsar 4.2.0 release notes and 4.2.4
- NATS blog, What's new in NATS 2.12 and 2.14
- Redis AGPLv3 announcement, Valkey 9.0 and Valkey 9.1
- Amazon SQS turns 20, SQS fair queues, SQS 1 MiB payloads
- Google Pub/Sub release notes and Pub/Sub Lite release notes
- Azure Service Bus 99.99% SLA update and Service Bus FAQ
- ASF: Apache Artemis becomes a top-level project and Artemis group ID migration
- Apache RocketMQ 5.5.0 LiteTopic
- PGMQ on GitHub