pros and cons of Avro - JSON / binary serialization

Viewed 1700

I've recently started working with Apache-Avro and would like to serialize my Kafka Topics. Now I've read that Avro offers both Json and binary serialization. Are there any pros and cons? Is not the binary solution better?

Kind regards, nika

1 Answers

It depends on what you are looking for:

  • Binary - smaller data and faster serialization.
  • JSON - good for debugging and web-based applications.

Pay attention that a JSON schema is transferred in any case.

Related