Home | About | Sematext search-lucene.com search-hadoop.com search-devops.com metrics + logs = try SPM and Logsene for free
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
Kafka >> mail # user >> one producer and 2 consumers


Copy link to this message
-
Re: one producer and 2 consumers
Hi.
   I have simple kafka producer/consumer application. I have one producer
and 2 consumers. consumers has the same code , it is just executed it in
different threads. For some reason information produced by producer
consumed only by ONE CONSUMER.Second consumer didn't consumed any
information. May be I have to add additional configuration parameters?

I need is the following:
1)Producer produce one event.
2)Two consumers and each consumer consumes the  event one time.

For example :
1)Producer1 produces message Message1.
2)Consumer1  consumes Message1.
3)Consumer2 consumes Message1.

What is the way to got such functionality?

Thanks
Oleg.
On Sun, Apr 21, 2013 at 7:21 PM, Philip O'Toole <[EMAIL PROTECTED]> wrote:
 
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB