Skip to content

Commit 46b403a

Browse files
committed
two-schema-registry-articles
1 parent 6f48db4 commit 46b403a

File tree

2 files changed

+83
-69
lines changed

2 files changed

+83
-69
lines changed

articles/event-hubs/schema-registry-client-side-enforcement.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Client-side schema enforcement - Schema Registry
2+
title: Client-side Schema Enforcement - Schema Registry
33
description: This article provides information on using schemas in a schema registry when publishing or consuming events from Azure Event Hubs.
44
ms.topic: conceptual
55
ms.date: 04/26/2023
@@ -9,27 +9,27 @@ ms.author: spelluru
99

1010
# Client-side schema enforcement
1111

12-
Client-side schema enforcement ensures that the data sent by the producer application and received by the consumer application is validated against the schemas defined in the Schema Registry on the client side itself (that is, rather than on the broker/server side).
12+
Client-side schema enforcement ensures that the data sent by the producer application and received by the consumer application is validated against the schemas defined in the schema registry on the client side (versus the broker/server side).
1313

1414
This flow is illustrated as shown:
1515

16-
:::image type="content" source="./media/schema-registry-overview/information-flow.svg" alt-text="Image showing the Schema Registry information flow." border="false":::
16+
:::image type="content" source="./media/schema-registry-overview/information-flow.svg" alt-text="An image shows the schema registry information flow." border="false":::
1717

1818
> [!NOTE]
19-
> While the diagram showcases the information flow when event producers and consumers use Schema Registry with the Kafka protocol and Avro schema, it doesn't really change for other protocols and schema formats.
19+
> The diagram showcases the information flow when event producers and consumers use a schema registry with the Kafka protocol and Avro schema, but the same generally applies when other protocols and schema formats are used.
2020
>
2121
2222
### Producer
2323

24-
1. Kafka producer application uses `KafkaAvroSerializer` to serialize event data using the specified schema. Producer application provides details of the schema registry endpoint and other optional parameters that are required for schema validation.
24+
1. The Kafka producer application uses `KafkaAvroSerializer` to serialize event data by using the specified schema. The producer application provides details of the schema registry endpoint and other optional parameters that are required for schema validation.
2525

2626
1. The serializer looks for the schema in the schema registry to serialize event data. If it finds the schema, then the corresponding schema ID is returned. You can configure the producer application to auto register the schema with the schema registry if it doesn't exist.
2727

28-
1. Then the serializer prepends the schema ID to the serialized data that is published to the Event Hubs.
28+
1. The serializer prepends the schema ID to the serialized data that is published to the Event Hubs.
2929

3030
### Consumer
3131

32-
1. Kafka consumer application uses `KafkaAvroDeserializer` to deserialize data that it receives from the event hub.
32+
1. The Kafka consumer application uses `KafkaAvroDeserializer` to deserialize data that it receives from the event hub.
3333

3434
1. The deserializer uses the schema ID (prepended by the producer) to retrieve schema from the schema registry.
3535

0 commit comments

Comments
 (0)