On this page
Kafka Improvement Proposal
KIP-1279: Cluster Mirroring, the same offsets in both clusters
KIP-1279 adds Cluster Mirroring to Apache Kafka: the destination brokers fetch a topic straight from the source cluster and write it under the same name at the same offsets, as a read-only mirror. A consumer can switch clusters and keep its committed offset as is. The proposal was accepted in September 2026 and is being implemented.
- Proposal
- KIP-1279, Cluster Mirroring
- Status
- Accepted, not released Accepted in September 2026; being implemented, not in any release yet (Kafka 4.4 does not include it).
- Area
- Across clusters
- Proposal page
- KIP-1279 on the Apache Kafka wiki
Why it was needed
MirrorMaker 2 (KIP-382) copies records by consuming and producing them again, so a record gets a new offset in the target cluster and offsets must be translated on failover, approximately. It also needs a Kafka Connect cluster to run. Confluent solved this commercially with Cluster Linking; Apache Kafka had no built-in equivalent.
What it changes
The destination cluster runs mirror fetcher threads that replicate the source partitions much like a follower replica does, byte for byte, so offsets, timestamps and transaction markers are identical. The mirror topic keeps its name and rejects client produces with READ_ONLY_TOPIC. Consumer group offsets are synced across. To fail over you stop the mirror, which makes the topic writable; pause and resume suspend mirroring; and to fail back you mirror in the other direction, truncating the old source to the last point both sides share. Every mirror operation needs the mirror.version feature flag.
Where it stands
The vote passed on 18 September 2026. The implementation is in progress in the Kafka repository, and the feature is not in Apache Kafka 4.4, the latest release; no target release is set. It will ship first as an early-access feature, disabled by default, and that release is planned to include access-control and topic-config sync, include and exclude filters and throttling.
What comes next
First the implementation has to land, behind the mirror.version feature flag; Kafka 4.5 is the earliest release it could be in. Follow-up KIPs are planned for synchronous replication, still a draft, and for mirroring topics on tiered storage; mirroring diskless topics is still under discussion. Until then, offset-preserving mirroring is only available in commercial products such as Confluent Cluster Linking.
See it in the simulator
- Apache Kafka Cluster Mirroring (KIP-1279): stop and failback (Cluster Mirroring: stop and fail back) Step 4: Stop: writable now, the open transaction aborted Open at this step: Apache Kafka Cluster Mirroring (KIP-1279): stop and failback
- Apache Kafka Cluster Mirroring (KIP-1279): stop and failback (Cluster Mirroring: stop and fail back) Step 7: Fail back: truncate and mirror back Open at this step: Apache Kafka Cluster Mirroring (KIP-1279): stop and failback
- Confluent Cluster Linking: offset-preserving Kafka mirroring (Cluster Linking: byte-for-byte offset-preserving mirror) Step 2: Offsets preserved (cluster link) vs translated (MM2) Open at this step: Confluent Cluster Linking: offset-preserving Kafka mirroring
- Kafka mirror topics (Confluent): read-only until promoted (Mirror topics are read-only; promotion makes them writable) Step 3: promote_mirror → writable Open at this step: Kafka mirror topics (Confluent): read-only until promoted
- Kafka failover and failback with Confluent Cluster Linking (Bidirectional links and clean failback) Step 3: Switchover: promote + reverse Open at this step: Kafka failover and failback with Confluent Cluster Linking
Scenario 20.1.6 follows KIP-1279 as accepted; the Cluster Linking scenarios show the same offset-preserving model in Confluent's product. In free play, the link inspector can switch any mirror link to Apache Kafka Cluster Mirroring (KIP-1279), marked as a KIP in the interface.