Re: invoking kafka consumer as soon as message arrives in topic

2015-11-04 Thread Li Tao
Hi, though i don't fully understand your question, i'd like to comment on your code design. 1. it's better for you to run you consumer in a separate thread instead of main thread, because it blocks the execution main thread. 2. you created a thread for each message, this is very costly. if it take

invoking kafka consumer as soon as message arrives in topic

2015-10-26 Thread Kudumula, Surender
Hi all Iam trying to write a web application which is invoked when the message arrives in topic. The code is waiting for a message in kafka consumer in while loop and sometimes it picks up the message and sometimes its waiting forever even when the message is produced in the topic. I am invoking