---
title: "Kafka Schema Registry down: why warm clients keep going"
description: "The only Schema Registry instance dies, yet Kafka producers and consumers keep going: both cached schema id 1, so the hot path never asks SR again."
url: https://monedula.dev/kafka-simulator/scenarios/sr-down-warm-clients/
---

# Kafka Schema Registry down: why warm clients keep going

Scenario 25.1.4 · Schema Registry down: warm clients keep going. Schema registry · Intermediate · about 3 min · Apache Kafka 4.4 · Confluent Platform feature.

The only SR instance dies, yet producing and consuming go on: both clients cached schema id 1 and never ask SR for a schema they know.

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

## What you start with

An Avro producer does not send the schema with each record, only a schema id. Its serializer asks Schema Registry once per schema and caches the id; the consumer's deserializer caches the id-to-schema lookup the same way. Here the only SR instance dies after both clients warmed their caches.

## Step by step

1. **warm clients · sr-1 leads** (t+0.000s): One DC, one Schema Registry instance. The producer and the consumer have both resolved schema id 1 already: it sits in their serializer and deserializer caches. The Setup review flags the single instance. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=25.1.4&t=0)
2. **O1 written and read** (t+1.000s): O1 goes to Kafka with schema id 1 in its header bytes; the consumer decodes it from its cache. Neither client called Schema Registry. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=25.1.4&t=1)
3. **sr-1 down** (t+1.600s): The only SR instance dies. The registry has no leader and no instance to answer a lookup. The brokers are untouched. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=25.1.4&t=2)
4. **O2 and O3 still flow** (t+2.900s): The producer keeps sending and the consumer keeps reading: a schema they know never needs SR. The outage stays invisible until a client needs a schema it has not cached. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=25.1.4&t=3)

## The takeaway

A Schema Registry outage does not stop clients that already know their schemas: they never call SR on the hot path. What stops is anything that needs a lookup or a registration - a restart, a new schema id, a new schema. 25.1.5 shows those.

## Further reading

- [Confluent documentation](https://docs.confluent.io/platform/current/schema-registry/fundamentals/serdes-develop/index.html)
