Techment — Site Header

What is Data Serialization

Definition

Data serialization is the process of converting in-memory data structures into a standardised byte format that can be stored or transmitted, and later deserialized back into usable structures, enabling systems to exchange data reliably across networks, languages, and storage.
« Back to Glossary Index
  • Lets systems exchange data across languages, networks, and storage reliably
  • Compact binary formats reduce payload size and speed transmission
  • Schema-aware formats preserve data types and structure across systems
  • Enables persistence and messaging by turning live objects into portable bytes

Real World Example

A microservice serializes an order object into Protobuf before publishing it to a message queue, where another service written in a different language deserializes the bytes back into its own native object.

FAQs

What is the difference between serialization and deserialization?

Serialization converts in-memory data into a byte format for storage or transfer, while deserialization reconstructs the original structure from those bytes.

Why use binary formats over JSON?

Binary formats like Avro and Protobuf are smaller and faster to parse, and many carry schema information that preserves types.

Where is serialization used?

In messaging, RPC, caching, and persisting data, anywhere structured data must cross a process, network, or storage boundary.

Hello popup window