-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support writing serialized protobuf objects #27
Comments
Hey @nrsalt, It shouldn't be that hard. There are two functions to help produce serialized and consume and deserialize Avro message:
It should probably be refactored with a Go interface that gets implemented by many de/serialization libraries/functions, so as to allow binary, JSON, Avro and possibly Protobuf. You can write your own de/serializer with protobuf and send a PR. Just keep in mind that some functions are used by Avro to make it work with Schema Registry like |
Thank you @mostafa! Unfortunately, I'm not familiar with Golang at all. Is there a chance to request this kind of enhancement? Just FYI, producer configuration that I'm looking for: Properties props = new Properties();
props.put("key.serializer", "org.apache.kafka.common.serialization.StringSerializer");
props.put("value.serializer", "org.apache.kafka.common.serialization.ByteArraySerializer"); |
Having protobuf serdes would be really appreciated. Unfortunately, i don't know "go" at all but it would be a really nice feature to push this plugin completeness further. |
@AbdelrhmanHamouda |
Hey, I have added some code which can be used to serialize Protobuf data. Note: The serializeBinary function generates uint8array which I think goja transforms to a map[string]interface{} type and not to a byte array. |
Hi @mostafa!
How hard is it to add support writing to kafka serialized protobuf objects?
The Error is:
The text was updated successfully, but these errors were encountered: