Hi Madhukar,

1. the java producer API can also be used for sync call; you can do it with
producer.send().get().
2. the partitioner class has been removed from the new producer API,
instead now the message could have a specific partition id. You could
calculate the partition id in your customized partitioner beforehand and
put the partition id into the message.

Guozhang

On Wed, May 13, 2015 at 4:05 AM, Madhukar Bharti <bhartimadhu...@gmail.com>
wrote:

> Hi all,
>
> What are the possible use cases for using new producer API?
> - Is this only provides async call with callback feature?
> - Is partitioner class has been removed from new Producer API? if not then
> how to implement it if I want to use only client APIs?
>
>
>
> Regards,
> Madhukar
>



-- 
-- Guozhang

Reply via email to