Async bulk / batch poll #58
-
Would it be possible for a bulk poll ? exemple : parallelConsumer.polls(records -> records.forEach( record ->
log.info("Concurrently processing a record: {}", record)
)
); thank to this interface void polls(Consumer<ConsumerRecords<K, V>> usersVoidConsumptionFunction); I currently have a consumer that for each result of poll make a single async bulk load ( pipelining operation ) to redis ( with redisson lib ) so my flow is
Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Yes, absolutely! See issue #18 and POC #19 Please vote on the issue :) |
Beta Was this translation helpful? Give feedback.
-
Do you have thoughts on how you might like to control the quantity of records in the batch? Would a set max quantity be enough? |
Beta Was this translation helpful? Give feedback.
-
By default it could use the value of (for a set max) of the current consumer ConsumerConfig.MAX_POLL_RECORDS_CONFIG ? |
Beta Was this translation helpful? Give feedback.
Yes, absolutely! See issue #18 and POC #19
Please vote on the issue :)