Re: Pattern for using kafka producer API

2014-02-10 Thread Jun Rao
If you are only worried about throughput, you can use one producer in async mode. You can tune the batch size and time for better performance. Thanks, Jun On Sun, Feb 9, 2014 at 11:42 PM, pushkar priyadarshi < priyadarshi.push...@gmail.com> wrote: > What is the most appropriate design for usin

Pattern for using kafka producer API

2014-02-09 Thread pushkar priyadarshi
What is the most appropriate design for using kafka producer from performance view point.I had few in my mind. 1.Since single kafka producer object have synchronization; using single producer object from multiple thread might not be efficient.so one way would be to use multiple kafka producer from