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