Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 3.93 KB

File metadata and controls

42 lines (30 loc) · 3.93 KB
title Azure Schema Registry in Azure Event Hubs
description This article provides an overview of Schema Registry support by Azure Event Hubs and how it can be used from your Apache Kafka and other apps.
ms.topic concept-article
ms.date 02/09/2026
ms.custom references_regions

Azure Schema Registry in Event Hubs

Event streaming and messaging scenarios often deal with structured data in the event or message payload. However, the structured data is of little value to the event broker, which only deals with bytes. Schema-driven formats such as Apache Avro, JSONSchema, or Protobuf are often used to serialize or deserialize such structured data to/from binary.

An event producer uses a schema definition to serialize the event payload and publish it to an event broker such as Event Hubs. Event consumers read the event payload from the broker and deserialize it by using the same schema definition.

Both producers and consumers can validate the integrity of the data by using the same schema.

:::image type="content" source="./media/schema-registry-overview/schema-driven-ser-de.svg" alt-text="Diagram showing producers and consumers serializing and deserializing event payload using schemas from the Schema Registry. " lightbox="./media/schema-registry-overview/schema-driven-ser-de.svg":::

What is Azure Schema Registry?

Azure Schema Registry is a feature of Event Hubs that provides a central repository for schemas for event-driven and messaging-centric applications. It provides the flexibility for your producer and consumer applications to exchange data without having to manage and share the schema. It also provides a simple governance framework for reusable schemas and defines relationship between schemas through a logical grouping construct (schema groups).

:::image type="content" source="./media/schema-registry-overview/schema-registry.svg" alt-text="Diagram showing a producer and a consumer serializing and deserializing event payload using a schema from the Schema Registry." lightbox="./media/schema-registry-overview/schema-registry.svg" border="false":::

With schema-driven serialization frameworks like Apache Avro, JSONSchema, and Protobuf, moving serialization metadata into shared schemas can also help reduce the per-message overhead. Each message doesn't need to include the metadata (type information and field names) as it does with tagged formats such as JSON.

Note

The feature is available in the Standard, Premium, and Dedicated tiers.

Storing schemas alongside the events and inside the eventing infrastructure ensures that the metadata required for serialization or deserialization is always available and schemas can't be misplaced.

Related content