Hello,
I have Spring Boot app that implements @KafkaListener. I decide to use
batches for better performance.

I add few changes to config:

    factory.setBatchListener(true);

and add batch size.

Also I change kafka listener to receive batches, this is signature of
method:

    public void receive(List<ConsumerRecord<String, MyData>> r,
Acknowledgment acknowledgment)

With previous listener data deserialize like expected, all works fine. But
after changes value field is null. Offsets acknowledgment all works but no
data.

I found pretty old issue on github
https://github.com/spring-projects/spring-kafka/issues/240 but version of
spring kafka that I use is 1.2.2.

 I well be glad for any advice. Thanks!

Reply via email to