Skip to content
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

Serialize/deSerialize function provided to Consumer/Producer instance #560

Closed
brunifrancesco opened this issue Mar 18, 2019 · 3 comments
Closed

Comments

@brunifrancesco
Copy link

It seems there is no possibility to set up a value serializer/de-serializer when producing/consuming messages.
Is this feature planned to be supported?

Thanks,
FB

@OneCricketeer
Copy link

You would set them up before/after reading the messages to create/parse the bytes.

e.g. I externalized the Avro serializer for the regular Producer class here - https://gist.github.com/cricket007/4db67f51fcaa02776340237762950b67#file-confluent-kafka-avroapp-py-L29-L35

@mhowlett
Copy link
Contributor

mhowlett commented Apr 7, 2019

there is a PR open for this #502.... which would probably be in already if i wasn't so intent on arguing over the details :-). it'll likely be in the next release. this feature has wider impact than it might first seem, so it'll pay for it to be well considered.

@rnpridgeon
Copy link
Contributor

As @mhowlett mentioned this is on the roadmap. The PR stalled a bit while I worked on a few other projects but i'll be picking it back up to get it into the project soon. Thank you for your patience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants