Re: Differences between new and legacy scala producer API

2015-05-08 Thread Manoj Khangaonkar
On Thu, May 7, 2015 at 10:01 PM, Rendy Bambang Junior 
rendy.b.jun...@gmail.com wrote:

 Hi

 - Legacy scala api for producer is having keyed message along with topic,
 key, partkey, and message. Meanwhile new api has no partkey. Whats the
 difference between key and partkey?


In the new API, key is encapsulated in the ProducerRecord.

regards



-- 
http://khangaonkar.blogspot.com/


Differences between new and legacy scala producer API

2015-05-07 Thread Rendy Bambang Junior
Hi

- Legacy scala api for producer is having keyed message along with topic,
key, partkey, and message. Meanwhile new api has no partkey. Whats the
difference between key and partkey?
- In javadoc, new producer api send method is always async, does
producer.type properties overriden?
- Will scala legacy api be deprecated any time soon?

Rendy