What is Schema Registry

Definition

A schema registry is a centralised service that stores and versions the schemas used by event streams, validating that producers and consumers agree on data structure and enforcing compatibility rules so that schema changes do not silently break downstream applications.
« Back to Glossary Index
  • Stores and versions stream schemas in one authoritative, shared location
  • Enforces compatibility rules so a new schema cannot break existing consumers
  • Lets producers and consumers evolve independently within agreed contracts
  • Shrinks message size by referencing schema IDs instead of embedding full schemas

Real World Example

A streaming platform registers each Kafka topic's Avro schema in a schema registry, which rejects an incompatible producer change before it ships, preventing a malformed update from crashing dozens of downstream consumers.

FAQs

What does a schema registry enforce?

It enforces that messages match a registered schema and that schema changes obey configured compatibility rules, such as backward compatibility.

Why use a schema registry with Kafka?

It guarantees producers and consumers share a consistent, evolving contract, preventing silent breakage as data formats change.

What formats do schema registries support?

Commonly Avro, Protobuf, and JSON Schema, each with versioning and compatibility checking.

Hello popup window