Data platforms · Streaming

Kafka queues are production-ready: when share groups can replace a separate message broker

Many platforms run Kafka for event streams and a second system for work queues, because Kafka's consumer groups tie each partition to one consumer. Kafka 4.2 made share groups, its queue semantics, production-ready. For some teams, that means one less system to run.

ExplainerSumanta Mukhopadhyay7 min read5 sources
#data#streaming#architecture#platform
EXPLAINER · DATA PLATFORMS · STREAMING27 Oct 2026 · 04:20 GST

A familiar architecture: Kafka carries business events between services and into the lakehouse, while RabbitMQ, SQS or a database-backed job table handles background work such as sending emails, generating documents or calling a model. Two systems, two sets of operational skills, two places where messages can get stuck. The reason was structural. Kafka's consumer groups assign each partition to exactly one consumer, so you cannot scale workers beyond the partition count, and one slow message holds up everything behind it.

What changed

KIP-932, "Queues for Kafka", introduced share groups. Kafka 4.0, the first release to run only in KRaft mode without ZooKeeper, offered them as early access45. The 4.2.0 release announcement describes Kafka Queues as production-ready, adding a RENEW acknowledgement type, adaptive batching in the share coordinator, limits on fetched record counts, and lag metrics13.

Consumer groups versus share groups

The Kafka documentation describes share groups as an alternative to consumer groups: consumers share a topic's records without each partition being tied to one consumer, records are acknowledged individually, and delivery attempts are counted. It suggests them for workloads that process records one at a time rather than as an ordered stream2.

Consumer groupShare group
AssignmentEach partition to one consumerRecords shared across consumers
Scaling limitNumber of partitionsNot tied to partition count
Progress trackingOffset per partitionAcknowledgement per record
RetriesBuilt by the applicationDelivery attempts counted by Kafka
OrderingPreserved within a partitionNot the design goal
Best forEvent streams, CDC, aggregationsIndependent tasks: jobs, notifications, AI calls

If the order of records matters, use a consumer group. If each record is an independent piece of work, a share group is now a real option.

Where it fits well

  • AI and enrichment workloads. Calling a model for each document or record is slow and variable. Share groups let you add workers to match throughput without repartitioning, and a slow call doesn't block the rest.
  • Fan-out jobs from existing events. If the events already land in Kafka, for example from change data capture, processing them as tasks without copying them to another broker removes a hop.
  • Bursty background work, where worker count needs to swing widely during the day, combined with autoscaling like that in Kubernetes scale-to-zero.

Where a separate broker still wins

  • No Kafka today. Adopting Kafka just for a work queue is rarely worth it. A managed queue is simpler.
  • Complex routing. Topic exchanges, header-based routing and per-message priorities remain stronger in dedicated brokers.
  • Strict ordering with parallelism. If you need per-key order and parallel processing, keyed consumer groups remain the right model.
  • Small clusters. Share groups store state in an internal topic that defaults to three replicas, so clusters with fewer than three brokers must adjust internal replication settings first2.

How I'd adopt it

  1. Get to a current release. Share groups need KRaft-based Kafka 4.x; plan the ZooKeeper migration first if you haven't5. Run the latest 4.2 patch release rather than 4.2.0.
  2. Pick one queue workload that already consumes from Kafka and has idempotent processing, using the patterns in idempotent pipelines. Per-record acknowledgement still means at-least-once delivery.
  3. Decide what happens after the last attempt. Route repeatedly failing records somewhere a person will see them.
  4. Monitor share-group lag with the new metrics and alert on it, as you would queue depth1.
  5. Check your managed service. Hosted Kafka offerings adopt new features and metrics at different speeds.
  6. Retire the old queue only after a full cycle of peak load and incident handling on the new one.

How I can help

I design event and data platforms that stay simple as they scale, including when to consolidate systems and when not to. As a fractional CTO I can own that architecture. Or analyse your challenge and bring the result to a call.

References
  1. 1
  2. 2
  3. 3
    Apache Kafka 4.2 releaseConfluent · 2026
  4. 4
  5. 5
FAQ

Common questions

What are Kafka share groups?

An alternative to consumer groups, introduced by KIP-932 as 'Queues for Kafka'. Consumers in a share group cooperatively consume records from a topic without each partition being assigned to a single consumer, and records are acknowledged individually with delivery attempts counted.

Are Kafka queues production-ready?

The Apache Kafka 4.2.0 release announcement describes Kafka Queues (share groups) as production-ready. The feature appeared as early access in Kafka 4.0.

Should I replace RabbitMQ or SQS with Kafka share groups?

Only where it simplifies your platform. Share groups suit work-queue workloads already flowing through Kafka. Dedicated brokers may still be the better fit for complex routing, very low-volume task queues, or teams with no Kafka operations experience.

Keep reading

Related

Open to advisory, fractional CTO & select builds

Let's talk about what you're building.

The fastest route is a free 30-minute call. Prefer to write? Send a message and I'll reply personally within two business days.

Start a conversation

How would you like to reach me?

Book a 30-min callFastest. Pick any open slot on my calendar.→ Write in GmailOpens a pre-filled draft in your browser.→ Use my email appOutlook, Apple Mail or your default client.→

I reply personally within two business days. Time zones from the Americas and Europe to the Middle East and Asia-Pacific.