---
title: "Two independent Schema Registries break mirrored Kafka data"
description: "Each Kafka region runs its own Schema Registry. Mirrored records carry ids the DR registry does not know, so the DR consumer stops at the first one."
url: https://monedula.dev/kafka-simulator/scenarios/independent-registries/
---

# Two independent Schema Registries break mirrored Kafka data

Scenario 25.1.9 · Two independent registries break mirrored data. Schema registry · Advanced · about 4 min · Apache Kafka 4.4 · Confluent Platform feature.

Each region runs its own Schema Registry. Mirrored records carry primary's schema ids, which dr's registry does not know, so the dr consumer stops.

Run it: https://monedula.dev/kafka-simulator/playground/?scenario=25.1.9

## What you start with

A tempting DR setup: a second Schema Registry in dr, with its own _schemas topic, next to a cluster link that mirrors orders. Both registries are healthy, and both are highly available - but they assign schema ids on their own.

## Step by step

1. **two independent registries** (t+0.000s): primary and dr each run their own Schema Registry with their own _schemas. A cluster link mirrors orders into dr. Both registries hold orders-value v1, each as its own schema id 1. The Setup review flags the setup. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=25.1.9&t=0)
2. **dr consumer stuck at O1** (t+0.900s): O1 arrives in dr carrying primary's schema id 1. To dr's registry that id belongs to a different lineage, so c-dr cannot decode it and stops at offset 0. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=25.1.9&t=1)
3. **lag grows in dr** (t+1.500s): O2 is mirrored too; c-dr stays stuck. Both registries are healthy - the failure is that they are two. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=25.1.9&t=2)

## The takeaway

Two registries are not a fault-tolerant registry. A schema id only means something in the registry that assigned it, so mirrored data needs the same lineage on both sides: mirror _schemas and run dr follower-only (25.1.8), or link the registries.

## Further reading

- [Confluent documentation](https://docs.confluent.io/platform/current/schema-registry/multidc.html)

## Troubleshooting

- [Schema not found (40403) in Kafka: causes and fixes](https://monedula.dev/kafka/troubleshooting/schema-not-found/)
