Companion extra Chapter 3
Avro schema evolution through the registry
Schema v2 drops faxNumber and adds email, both with defaults. A v1 record read with v2, and a v2 record read with v1, both decode: the registry supplies the writer schema, the reader fills what is missing from its defaults, and drops the field it does not know.
What to notice
See why a reader and a writer never have to agree on a schema version, as long as the change keeps its defaults.
From Chapter 3: Kafka Producers: Writing Messages to Kafka in Kafka: The Definitive Guide.
Open SVG
Space pauses, R restarts, arrows move between animations