DEV Community

Cover image for Protobuf vs Avro for Kafka, what to choose?
Kateryna
Kateryna

Posted on

7 2 1 1 1

Protobuf vs Avro for Kafka, what to choose?

Hey there!👋 Recently I had a few quite insightful evenings comparing possible options for the Kafka messaging format, so I gathered some useful articles for you.

  1. Data Serialization: Avro vs Protobuf
    Awesome comparison of Protobuf and Avro. Well structured, and detailed where it's needed. This article summarizes traits, pros and cons, and leaves you with a basic understanding of when and where to use these formats.

  2. What you can do with Protobuf and can't with Avro? and vice versa
    Fabulous article with a detailed overview of how serialization works with Protobuf, Avro and JSON Schema. With real-life code samples and connectivity with schema registry samples.

  3. Arvo and Protobuf performance compared
    Quite a good example if you are a fan of "example with real numbers". This article shows the serialization of both types in action. Definitely worth reading.

  4. Kafka Schema evolution
    If your schema changes often and you wanna a format that will simplify this process as much as possible, this article will save you time and energy.

P.s my personal preference -- Protobuf (100%), however, the reading was fun

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay