Serialization
Converting an in-memory data structure into a byte stream for storage or network transmission. Deserialization is the reverse. JSON, Protobuf, and Avro are serialization formats.
What is Serialization?
Converting an in-memory data structure into a byte stream for storage or network transmission. Deserialization is the reverse. JSON, Protobuf, and Avro are serialization formats.
Serialization is a foundational concept that sits in the Core Fundamentals area of system design. Engineers reach for it whenever they need to reason about real-world trade-offs in that space — not just for textbook correctness, but because real production systems at companies like Netflix, Amazon, and Google make these decisions every day.
If you want to go deeper than this definition — with diagrams, code, and a quiz to lock it in — work through the "Serialization" lesson linked below. It walks through the why, the mechanism, the trade-offs, and how the giants actually use it in production.
Learn Serialization in depth
Full interactive lesson with diagrams, code examples, real-world references, and a quiz.
Open the Serialization lessonRelated lessons
Lessons that touch on Serialization as part of a larger topic.
Protocol Buffers
Google's language-neutral binary serialization, smaller, faster, and strictly typed
intermediate · api design protocols
Apache Avro
Schema-evolution-friendly binary serialization, the serialization format built for big data
intermediate · api design protocols
MessagePack
JSON but binary, a compact serialization format that is schema-less and fast
intermediate · api design protocols
Apache Thrift
Facebook's cross-language RPC framework, the predecessor to gRPC with a wider transport layer
intermediate · api design protocols
See also
Related glossary terms you might want to look up next.
JSON
JavaScript Object Notation: a lightweight text format for data interchange using key-value pairs and arrays. The lingua franca of web APIs.
Protocol Buffers
Google's language-neutral, binary serialization format. Smaller and faster than JSON. Defines schemas in .proto files that generate typed code for any language.
gRPC
A high-performance RPC framework by Google using Protocol Buffers and HTTP/2. Much faster than REST for service-to-service communication.