---
title: "KIP-1191 explained: dead-letter queues for share groups"
description: "KIP-1191 in plain words: a Kafka share group can now send the records it gives up on to a dead-letter topic instead of just dropping them. Status and setup."
url: https://monedula.dev/kafka/kips/kip-1191/
---

# KIP-1191: a dead-letter queue for share groups

Consumer groups and queues · Shipped · since Kafka 4.4 · status checked November 2026.

KIP-1191 gives share groups a dead-letter queue. When a record is rejected or runs out of delivery attempts, the broker writes it to a dead-letter topic before archiving it, so the failed message can be inspected or replayed later instead of silently disappearing from the queue.

## At a glance

- Proposal: KIP-1191, Dead-letter queues for share groups
- Status: Shipped. New in Kafka 4.4, opt-in per share group.
- Area: Consumer groups and queues
- Proposal page: [KIP-1191 on the Apache Kafka wiki](https://cwiki.apache.org/confluence/display/KAFKA/KIP-1191%3A+Dead-letter+queues+for+share+groups)

## Why it was needed

Share groups (KIP-932) stop a poison message from looping forever: after group.share.delivery.count.limit attempts, or when a consumer rejects it, the record is archived and never delivered again. But archived meant gone from the group's point of view. Every team had to build its own dead-letter handling in the consumer, which is exactly the part that tends to fail along with the processing.

## What it changes

A share group can be given a dead-letter topic. When a record is rejected, or released once too often, the broker writes a dead-letter record to that topic before archiving the original. By default the dead-letter record holds only headers: the group, topic, partition, offset, delivery count and why it failed. A group setting adds a copy of the original key and value. If the write fails, for example because the topic does not exist, the record is archived anyway.

## How to use it

- Set the group config errors.deadletterqueue.topic.name to the dead-letter topic; set errors.deadletterqueue.copy.record.enable=true to keep the key and value too.
- The topic name must start with the cluster prefix errors.deadletterqueue.topic.name.prefix (dlq. by default), and the topic needs errors.deadletterqueue.group.enable=true. Create it first unless errors.deadletterqueue.auto.create.topics.enable is on.
- The feature needs share.version=2 on the cluster.

## Where it stands

Shipped in Apache Kafka 4.4. It is off until a group is given a dead-letter topic, and it needs the cluster on share.version=2.

## What comes next

Replaying from the dead-letter topic back into the main topic is left to tools and applications for now.

## See it in the simulator

- [Kafka 4.4 share group dead-letter queue (KIP-1191)](https://monedula.dev/kafka-simulator/scenarios/share-group-dead-letter-queue/) (Share group dead-letter queue), step 4: Dead letter in dlq.orders. The broker wrote offset 0 to dlq.orders partition 0 at offset 0: no key or value, only __dlq.errors headers naming group sg1, topic orders, partition 0, offset 0, delivery count 3 and the reason, Offset delivery count exceeded the threshold. Only then is it ARCHIVED, and SPSO moves to 3. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=22.1.10&t=3)
- [Kafka 4.4 share group dead-letter queue (KIP-1191)](https://monedula.dev/kafka-simulator/scenarios/share-group-dead-letter-queue/) (Share group dead-letter queue), step 3: Archiving, not archived. The lock expired again with the delivery count at the limit (3). Because the group has a dead-letter topic, offset 0 goes ARCHIVING instead of ARCHIVED, and SPSO stays at 0 while the broker writes it to dlq.orders. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=22.1.10&t=2)

## Sources

- [KIP-1191: Dead-letter queues for share groups](https://cwiki.apache.org/confluence/display/KAFKA/KIP-1191%3A+Dead-letter+queues+for+share+groups)
- [Apache Kafka 4.4.0 release announcement](https://kafka.apache.org/blog/2026/10/22/apache-kafka-4.4.0-release-announcement/)

## Related KIPs

- [KIP-932 explained: Queues for Kafka and share groups](https://monedula.dev/kafka/kips/kip-932/)
- [KIP-1222 explained: renewing a share group record lock](https://monedula.dev/kafka/kips/kip-1222/)
