binary encoding
Representing data as raw bytes laid out by a fixed plan rather than as readable text.
In more detail
Binary encodings are smaller and faster to parse than text, but you need the layout, or schema, to read them. Printed in a terminal they look like gibberish because many bytes are not printable characters.
Related terms
- wire format — The exact shape data takes when it travels between programs, such as the field names and types of a JSON body.
- struct module — The Python standard library module that packs values into bytes, and unpacks them, according to a format string.
- Apache Avro — A compact binary serialization format whose schemas are written as JSON documents.
- Protocol Buffers — A language-neutral way to define data structures and services in .proto files and encode messages in a compact binary format.
Taught in
- Bytes On The Wire: JSON, Avro And Protobuf — Apache Kafka & Event Streaming