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

Feature request: Schema with Message in AvroConsumer #449

Open
saabeilin opened this issue Sep 19, 2018 · 1 comment
Open

Feature request: Schema with Message in AvroConsumer #449

saabeilin opened this issue Sep 19, 2018 · 1 comment

Comments

@saabeilin
Copy link

Description

Avro message schemas usually carry important information, namespace and name.
For example, in Java API, both specific and generic Avro records have schema available via getSchema.

These namespace and name are essential to be able to:

  • differentiate event handling depending on type,
  • dynamically create Python objects from deserialized messages.
@rnpridgeon
Copy link
Contributor

For those finding this please see @saabeilin's excellent wrapper kafkian.

https://github.com/saabeilin/kafkian/blob/master/README.md

I think in the long run we, confulent-kafka-python, will add two fields(keyObject, valueObject) to the message(In C land) itself which any serializer/deserializer(when alternatives are made available) can leverage. This in theory should make the library more flexible in general for generic serde support but there are still a few things we want to think out first.

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

3 participants