I would like to use the Kafka high-level API, and at the same time, I would like to turn off automatic offsets. I tried to achieve this by following these steps.
1) auto.commit.enable = false
2) offsets.storage = kafka
3) dual.commit.enabled = false
I created an offset manager that periodically creates an offsetcommit request for kafka and captures the offset.
However, I have the following questions
1) Does the high-level API automatically extract the offset from the kafka repository and initialize itself with this offset? Or should I use a simple user API to achieve this?
2) Is kafka-based storage maintained for offsets in all brokers? Or is it supported by only one broker?
source
share