Skip to content

How to produce a Protobuf serialised to byteArray #2944

Closed Answered by iliax
maxdidato asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @maxdidato
here some options for you:

  1. if you are using SchemaRegistry with protobuf schema - then just configure SR for your cluster. (example is here)

  2. If you not using SR and just want to produce messages with specified protobuf schema - you should tell kafka-ui where that schema can be found (example is here). After that you will see "ProtobufFile" serde in serde selection field. After that you just enter json representation of your msg, it will be serialized and sent to kafka. Using this approach messages should be also viewable in "Messages" tab.

  3. If you need a byte-exact representation of binary data without an ability to view its content - you can serialize proto message …

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by iliax
Comment options

You must be logged in to vote
1 reply
@Haarolean
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants