Figure 3-2 Chapter 3
Serialization and deserialization of Avro records
The producer sends the current version of its schema to the Schema Registry, then writes a message carrying only a schema ID through the broker. The consumer reads the ID and asks the registry for the matching schema before it can deserialize.
What to notice
See why an Avro message travelling through Kafka carries a schema ID instead of the schema itself.
From Chapter 3: Kafka Producers: Writing Messages to Kafka in Kafka: The Definitive Guide.
Open SVG
Space pauses, R restarts, arrows move between animations