How to manually control the offset commit with camel-kafka?

后端 未结 3 1417
小鲜肉
小鲜肉 2021-01-16 05:59

I\'m using the camel kafka component and I\'m unclear what is happening under the hood with committing the offsets. As can be seen below, I\'m aggregating records and I thin

3条回答
  •  忘掉有多难
    2021-01-16 06:55

    No you cannot. Kafka performs an auto commit in the background every X seconds (you can configure this).

    There is no manual commit support in camel-kafka. Also this would not be possible as the aggregator is separated from the kafka consumer, and its the consumer that performs the commit.

提交回复
热议问题