You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is because we do not provide a batch listener abstraction and in the current approach, we sequentially handle each record regardless of whether batch reading is used. Feel free to submit a pull request that introduces a batch listener concept. StreamListener would need to be retrofitted in terms of its generics.
I discovered that there is an option called batch size.
So, I expected that using this option would fetch all the data at once.
However,
onMessage
method cannot take a list as a parameter.It reads the data in batch size at once, but uses a for loop to deliver the data one by one.
I'm curious why it doesn't provide the data as a list at once, but instead delivers it this way.
(KafkaListener allow list, https://docs.spring.io/spring-kafka/reference/kafka/receiving-messages/listener-annotation.html#batch-listeners)
The text was updated successfully, but these errors were encountered: