Skip to content

Commit 9977102

Browse files
committed
edit pass: two-schema-registry-articles
1 parent 8b7e749 commit 9977102

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,28 +11,28 @@ ms.author: spelluru
1111

1212
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).
1313

14-
This flow is illustrated as shown -
14+
This flow is illustrated as shown:
1515

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

1818
> [!NOTE]
1919
> 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.
2020
>
2121
22-
### Producer
22+
### 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. 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.
2525

2626
2. 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-
3. Then the serializer prepends the schema ID to the serialized data that is published to the Event Hubs.
28+
3. Then the serializer prepends the schema ID to the serialized data that is published to the Event Hubs.
2929

30-
### Consumer
30+
### Consumer
3131

3232
1. Kafka consumer application uses `KafkaAvroDeserializer` to deserialize data that it receives from the event hub.
3333

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

36-
3. The deserializer uses the schema to deserialize event data that it receives from the event hub.
36+
3. The deserializer uses the schema to deserialize event data that it receives from the event hub.
3737

3838
4. The schema registry client uses caching to prevent redundant schema registry lookups in the future.

0 commit comments

Comments
 (0)