rele icon indicating copy to clipboard operation
rele copied to clipboard

Avro support

Open csoare7 opened this issue 2 years ago • 3 comments

Hello, would you consider introducing Avro encoder support for the publisher?

csoare7 avatar Apr 08 '22 05:04 csoare7

Interesting. What are you thinking exactly?

You would want to encode an Avro schema to json? Or you would want to send Avro over RPC to google?

The first option should be possible, quite easily actually.

Im not sure the second would be possible in the scope of this library.

andrewgy8 avatar Apr 08 '22 07:04 andrewgy8

It looks like it's doable: https://github.com/googleapis/python-pubsub/blob/HEAD/samples/snippets/schema.py

jonasae avatar Apr 08 '22 08:04 jonasae

Hey - thanks for the quick reply! I was interested in supporting the use case they have on the docs: https://cloud.google.com/pubsub/docs/publisher#python

csoare7 avatar Apr 08 '22 09:04 csoare7