Have you looked at https://cwiki.apache.org/confluence/display/KAFKA/Consumer+Group+Example ?
Thanks, Jun On Mon, Jun 17, 2013 at 7:43 PM, S Ahmed <sahmed1...@gmail.com> wrote: > Greetings, > > Are there any code samples of consumer that is used in production? I'm > looking for a something that is a daemon that has x number of threads and > reads messages of kafka. > > I've looked at the sampleconsumer etc., but those are just one of runs that > exit. > > i'm guessing that you would also have some retries in case a connection > temporarily goes down, and maybe even some co-ordination with zookeeper > etc. to spin up multiple consumers. > > thanks! >