Protocols
Saved & recent

Apache Avro

Also called: Avro binary encoding, Avro writer schema

Apache Avro serializes structured data using a schema. Its binary record encoding follows the writer’s schema, so field names and type descriptions do not have to be repeated inside every encoded record. A reader must obtain that writer schema to interpret the bytes correctly.

For example, a record containing a person’s name and score can carry just the encoded values in schema order. An Avro object container file includes its writer schema in metadata; other arrangements can supply the schema separately. Avro also defines how a reader schema resolves against a writer schema, allowing certain differences. Keeping those two schemas distinct is essential when old and new services exchange records.

Read first
Serialization
Related
Serialization, Schema registry, Schema evolution
Further reading
Apache Avro — specification 1.12.0
writer schema name: string score: int Ada 7 schematic binary record reader named record name: "Ada" score: 7 metadata · writer schema record blocks container file example
Avro interprets a record’s compact values using its writer schema, which may be carried in container metadata or supplied separately.

View in the full Protocols collection