I am using Kafka 0.8.1 and Kafka python-0.9.0. In my setup, I have two settings for kafka brokers. When I launch my kafka consumer, I see how he extracts messages from the queue and tracks the offsets for both brokers. Everything works great!
My problem is that when I restart the consumer, it starts to consume messages from the very beginning. I expected that after the reboot, the consumer would start consuming messages from where he left off until his death.
I tried to track message offsets in Redis, and then called user.seek before reading the message from the queue to make sure I get messages that I have not seen before. Although this worked before deploying this solution, I wanted to check with y'all ... maybe I misunderstood something about Kafka or the python-Kafka client. It seems that a consumer who is able to restart reading from where he left off is pretty simple functionality.
Thank!
source
share