Hello,

I have the following scenario:
I have 1 consumer that consumes from multiple topics. One of these topics
is special - it holds some boot data, so it needs to be fully read and
processed from the begining, till its current end, before messages from
other topics are processed. After I go to the end of the boot topic, I need
to start processing all other messages, but need to listen for any new
messages to the boot topic. How do I achieve the initial waiting, and after
that listening for incoming messages from all topics.
We are talking about kafka 0.9.

I read the documentation and there is a configuration for consumers -
consumer.timeout.ms -1 Throw a timeout exception to the consumer if no
message is available for consumption after the specified interval

It does seem that i can set some small timeout in the boot topic and wait
for an exception to be thrown, but i really don't like this approach. Is
there a nicer one ?

Regards
Mihail Yordanov

Reply via email to