KafkaAvroSerializer for serializing Avro without schema.registry.url

前端 未结 5 1074
轮回少年
轮回少年 2021-02-02 13:33

I\'m a noob to Kafka and Avro. So i have been trying to get the Producer/Consumer running. So far i have been able to produce and consume simple Bytes and Strings, using the fol

5条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-02 14:01

    As others have pointed out, KafkaAvroSerializer requires Schema Registry which is part of Confluent platform, and usage requires licensing.

    The main advantage of using the schema registry is that your bytes on wire will smaller, as opposed to writing a binary payload with schema for every message.

    I wrote a blog post detailing the advantages

提交回复
热议问题