DEV Community

Discussion on: Handle backpressure between Kafka and a database with Vert.x

Collapse
 
ndrbrt_23 profile image
ndr_brt

with the polling you can get the single record by setting the config max.poll.records to 1, but it's not good for performances.
With polling you get the a batch of messages, but you can process it one at a time, so, it's possible to know which is failing, the advice is to avoid commit when at least one message fails.
So yes, with this approach one or more fail = all batch fails.