-
Notifications
You must be signed in to change notification settings - Fork 407
Closed
Labels
Description
Hi!
I was trying to explicit use commit(), like this:
var stream = consumer.getReadStream(config.kafka_topic, {
fetchSize: 10
});
stream.on('data', msgs => {
msgs.map(msg => {
console.log('commiting...')
consumer.commit(msg, err => {
console.log(' commited!', err)
})
})
})
Noticed that the 'commited' callback, takes quite some time to be called (2-3 seconds for each one of them)
Is it correct to send commits like this?
Is so, why would it be so slow?
Thanks!!