apache / pulsar-client-go

Apache Pulsar Go Client Library
https://pulsar.apache.org/
Apache License 2.0
659 stars 336 forks source link

Question Regarding Protobuf schema #480

Open sloan-dog opened 3 years ago

sloan-dog commented 3 years ago

Hi,

I would like to utilize protobuf to define schema for a topic.

It is not apparent in documentation the format the protobuf schema function takes, and after reviewing a go test spec for protobuf schema, the test input looks identical to the test input for jsonschema. Can I assume that I should convert my protobufs to jsonschema, and pass the jsonschema string to the protobuf schema function?

Please advise, Thanks

goku321 commented 3 years ago

I have the same question: Is it possible to define a proto schema for a topic and use it to implement producer/consumer?