Data Serialization Formats: JSON, MessagePack and Avro
Compare data serialization formats: JSON, MessagePack, CBOR, Avro, and Thrift. Understand size, speed, schema evolution, and language support.
Published:
Tags: data, serialization, formats
Data Serialization Formats: JSON, MessagePack, CBOR, and Avro Explained Serialization is the act of converting in-memory data structures into a sequence of bytes that can be stored or transmitted, then reconstructed later. Every distributed system does this. Your choice of serialization format affects payload size, parse time, schema evolution, and debugging difficulty. This guide covers the five formats you'll encounter most in production: JSON (text baseline), MessagePack (binary JSON), CBOR (IoT and constrained systems), Avro (schema evolution), and Protocol Buffers (Google's format). You'll get concrete size and speed numbers, format internals, and decision criteria. --- Why Serialization Format Choice Matters Consider a microservice handling 100,000 requests per second with an…
All articles · theproductguy.in