kafka-connect-protobuf-converter icon indicating copy to clipboard operation
kafka-connect-protobuf-converter copied to clipboard

Use with producer client

Open rakeshbgupta opened this issue 4 years ago • 1 comments

Hi,

Is it possible to use this converter with a producer client instead of a connetor? I am asking this because I tried configuring a connector for my data source (gRPC) and it did not work, so I switched to the producer client api... and now stuck with protobuf to avro conversion.

I was hoping that this can also work with producer client.

Thanks Rakesh

rakeshbgupta avatar Mar 18 '20 15:03 rakeshbgupta

Converters are wrappers around Kafka serializers, so the short answer is yes. Otherwise, you can always use ByteArraySerializer and native JVM Protobuf code to get byte[] values to send

However, Confluent now has Protobuf serializers for clients to use with their Schema Registry.

OneCricketeer avatar Jul 23 '21 20:07 OneCricketeer