Re: Some queries about java api for kafka producer

2015-04-13 Thread dhiraj prajapati
Thanks a lot On 13 Apr 2015 06:08, "Manoj Khangaonkar" wrote: > Clarification. My answer applies to the new producer API in 0.8.2. > > regards > > On Sun, Apr 12, 2015 at 4:00 PM, Manoj Khangaonkar > wrote: > > > Hi, > > > > For (1) from the java docs "The producer is *thread safe* and should >

Re: Some queries about java api for kafka producer

2015-04-12 Thread Manoj Khangaonkar
Clarification. My answer applies to the new producer API in 0.8.2. regards On Sun, Apr 12, 2015 at 4:00 PM, Manoj Khangaonkar wrote: > Hi, > > For (1) from the java docs "The producer is *thread safe* and should > generally be shared among all threads for best performance" > > (2) (1) implies n

Re: Some queries about java api for kafka producer

2015-04-12 Thread Manoj Khangaonkar
Hi, For (1) from the java docs "The producer is *thread safe* and should generally be shared among all threads for best performance" (2) (1) implies no pool is necessary. regards On Sun, Apr 12, 2015 at 12:38 AM, dhiraj prajapati wrote: > Hi, > I want to send data to apache kafka using the ja

Some queries about java api for kafka producer

2015-04-12 Thread dhiraj prajapati
Hi, I want to send data to apache kafka using the java api of the kafka producer. The data will be in high volume, of the order of more than 5 thousand messages per second. Please help me with the following queries: 1. Should I create only one producer object for the entire app and use the same ob