Skip to content

MessagePack, CBOR, and Avro — Binary Alternatives for Every Scale

Explore binary data formats beyond Protobuf — MessagePack for compact JSON, CBOR for IoT, and Avro for big data with schema evolution.

14 min readmessagepack, cbor, avro, binary-formats, iot, big-data

Protobuf is the heavyweight champion of binary serialization, but it's not the only contender. Depending on your use case — IoT devices with limited bandwidth, big data pipelines processing terabytes, or simply wanting a faster JSON alternative — there's a binary format optimized for your specific needs.

Think of it like transportation. Protobuf is the high-speed rail: fast, structured, requires infrastructure. MessagePack is a motorcycle: quick, lightweight, minimal setup. CBOR is a rugged ATV: built for constrained environments. Avro is a freight train: optimized for massive volumes.

Let's understand when each one is the right tool.

MessagePack — Binary JSON

MessagePack is the simplest binary format to adopt. It's essentially JSON that's been compressed into binary — same data mo

This lesson is part of the Guild Member curriculum. Plans start at $29/mo.