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

Kafka Avro Deserializer #12

Open
basha-dev-coder opened this issue Jan 2, 2025 · 2 comments
Open

Kafka Avro Deserializer #12

basha-dev-coder opened this issue Jan 2, 2025 · 2 comments

Comments

@basha-dev-coder
Copy link

basha-dev-coder commented Jan 2, 2025

Hello guys, In my use case, I want to publish and consume Avro messages. I am successfully able to publish an Avro message, but not when consuming the Avro topic. By default, the plugin registers value deserialization as StringDeserializer. This makes it hard to map the messages when I need to match with custom matcher and adding additional checks for the message.

I tried registering with the KafkaAvroDeserializer class, but StringDeserializer is used by default, so I am not able to override the Deseriliaztion. Could you please help me fix this issue?

Screenshot 2025-01-02 at 3 07 36 PM
@Amerousful
Copy link
Owner

@basha-dev-coder Hi, currently I'm not able to implement this. I could recommend this plugin that supports Avro - https://github.com/galax-io/gatling-kafka-plugin

@basha-sainsburys
Copy link

basha-sainsburys commented Jan 3, 2025

@Amerousful I tried using the above plugin, but I found it difficult to deserialize and map the message. It would be very helpful if we had the flexibility to change the Deserializer class from string to the KafkaAvro class depending on the use case.

I am inclining towards this plugin since it has a very easy method to create custom message matcher logic.

I just want to use register with KafkaAvroDeseriliazer class, after that we can read by using fasterxml or avro library. Hope this makes sense

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

No branches or pull requests

3 participants